aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-02-22 05:58:31 -0500
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:23 -0400
commit9a2bb7f486dc639a1cf2ad803bf2227f0dc0809d (patch)
treedb323e11ae5a5286a1e344b444162be53bc4d9fc /drivers/kvm/kvm.h
parent1ea252afcd4b264b71d9c3f55358ff5ba4c04f1b (diff)
KVM: Use a shared page for kernel/user communication when runing a vcpu
Instead of passing a 'struct kvm_run' back and forth between the kernel and userspace, allocate a page and allow the user to mmap() it. This reduces needless copying and makes the interface expandable by providing lots of free space. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 0d122bf889db..901b8d917b55 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -228,6 +228,7 @@ struct kvm_vcpu {
228 struct mutex mutex; 228 struct mutex mutex;
229 int cpu; 229 int cpu;
230 int launched; 230 int launched;
231 struct kvm_run *run;
231 int interrupt_window_open; 232 int interrupt_window_open;
232 unsigned long irq_summary; /* bit vector: 1 per word in irq_pending */ 233 unsigned long irq_summary; /* bit vector: 1 per word in irq_pending */
233#define NR_IRQ_WORDS KVM_IRQ_BITMAP_SIZE(unsigned long) 234#define NR_IRQ_WORDS KVM_IRQ_BITMAP_SIZE(unsigned long)