diff options
author | Avi Kivity <avi@qumranet.com> | 2007-02-22 12:58:31 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 10:52:23 +0300 |
commit | 9a2bb7f486dc639a1cf2ad803bf2227f0dc0809d (patch) | |
tree | db323e11ae5a5286a1e344b444162be53bc4d9fc /drivers/kvm/kvm.h | |
parent | 1ea252afcd4b264b71d9c3f55358ff5ba4c04f1b (diff) | |
download | blackbird-op-linux-9a2bb7f486dc639a1cf2ad803bf2227f0dc0809d.tar.gz blackbird-op-linux-9a2bb7f486dc639a1cf2ad803bf2227f0dc0809d.zip |
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.h | 1 |
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 { struct mutex mutex; int cpu; int launched; + struct kvm_run *run; int interrupt_window_open; unsigned long irq_summary; /* bit vector: 1 per word in irq_pending */ #define NR_IRQ_WORDS KVM_IRQ_BITMAP_SIZE(unsigned long) |