KVM: SVM: copy only necessary parts of the control area on vmrun/vmexit
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 7 Aug 2009 09:49:31 +0000 (11:49 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:23 +0000 (08:33 +0300)
The vmcb control area contains more then 800 bytes of reserved fields
which are unnecessarily copied. Fix this by introducing a copy
function which only copies the relevant part and saves time.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c

Simple merge