Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80839
b: refs/heads/master
c: d17fbbf
h: refs/heads/master
i:
  80837: 9c904e5
  80835: 80de3e3
  80831: 1965621
v: v3
  • Loading branch information
Zhang Xiantao authored and Avi Kivity committed Jan 30, 2008
1 parent 1b6bea0 commit 2121327
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d657a98e3c20537d8b4d44aef51cf4311d96f2b0
refs/heads/master: d17fbbf7384d3b639f3c3299b5248ec4c4404556
53 changes: 22 additions & 31 deletions trunk/drivers/kvm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,41 +87,32 @@ struct kvm_io_device *kvm_io_bus_find_dev(struct kvm_io_bus *bus, gpa_t addr);
void kvm_io_bus_register_dev(struct kvm_io_bus *bus,
struct kvm_io_device *dev);

struct kvm_vcpu {
struct kvm *kvm;
struct preempt_notifier preempt_notifier;
int vcpu_id;
struct mutex mutex;
int cpu;
struct kvm_run *run;
int guest_mode;
unsigned long requests;
struct kvm_guest_debug guest_debug;
int fpu_active;
int guest_fpu_loaded;
wait_queue_head_t wq;
int sigset_active;
sigset_t sigset;
struct kvm_vcpu_stat stat;

#ifdef CONFIG_HAS_IOMEM
#define KVM_VCPU_MMIO \
int mmio_needed; \
int mmio_read_completed; \
int mmio_is_write; \
int mmio_size; \
unsigned char mmio_data[8]; \
int mmio_needed;
int mmio_read_completed;
int mmio_is_write;
int mmio_size;
unsigned char mmio_data[8];
gpa_t mmio_phys_addr;

#else
#define KVM_VCPU_MMIO

#endif

#define KVM_VCPU_COMM \
struct kvm *kvm; \
struct preempt_notifier preempt_notifier; \
int vcpu_id; \
struct mutex mutex; \
int cpu; \
struct kvm_run *run; \
int guest_mode; \
unsigned long requests; \
struct kvm_guest_debug guest_debug; \
int fpu_active; \
int guest_fpu_loaded; \
wait_queue_head_t wq; \
int sigset_active; \
sigset_t sigset; \
struct kvm_vcpu_stat stat; \
KVM_VCPU_MMIO

struct kvm_vcpu {
KVM_VCPU_COMM;

struct kvm_vcpu_arch arch;
};

Expand Down

0 comments on commit 2121327

Please sign in to comment.