KVM: SVM: copy only necessary parts of the control area on vmrun/vmexit
commit0460a979b4b7a564e59eaa8efbba6f5ae38c5b78
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 7 Aug 2009 09:49:31 +0000 (7 11:49 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:23 +0000 (10 08:33 +0300)
treec4d559e7cf3f0ac74773835c6be50d2f8d48b9d8
parentdefbba5660fb9fcad186bd799a635e52994a4d1a
KVM: SVM: copy only necessary parts of the control area on vmrun/vmexit

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