]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Avoid saving and restoring some host CPU state on lightweight vmexit
authorAvi Kivity <avi@qumranet.com>
Mon, 30 Apr 2007 13:07:54 +0000 (16:07 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:38 +0000 (12:05 +0300)
commitd338f0325bb34b89d9b80fb761ca756bfc4c8e07
tree75cdf0f0635a32e9337a4c2e3e5f332cf932f902
parentcf961943baa2ccdc38c0924bf52ddacfce9efa97
KVM: Avoid saving and restoring some host CPU state on lightweight vmexit

Many msrs and the like will only be used by the host if we schedule() or
return to userspace.  Therefore, we avoid saving them if we handle the
exit within the kernel, and if a reschedule is not requested.

Based on a patch from Eddie Dong <eddie.dong@intel.com> with a couple of
fixes by me.

Signed-off-by: Yaozu(Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/vmx.c