]> err.no Git - linux-2.6/commit
KVM: Use a shared page for kernel/user communication when runing a vcpu
authorAvi Kivity <avi@qumranet.com>
Thu, 22 Feb 2007 10:58:31 +0000 (12:58 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:23 +0000 (10:52 +0300)
commit9a2bb7f486dc639a1cf2ad803bf2227f0dc0809d
treedb323e11ae5a5286a1e344b444162be53bc4d9fc
parent1ea252afcd4b264b71d9c3f55358ff5ba4c04f1b
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>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
include/linux/kvm.h