]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Avoid saving and restoring msrs on lightweight vmexit
authorEddie Dong <eddie.dong@intel.com>
Thu, 17 May 2007 15:55:15 +0000 (18:55 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:41 +0000 (12:05 +0300)
commite646d1bf6d9eb260bd2d9e18372274314db82d69
treeef5fcd31527f5e211526f65180be2a6f73a1783e
parent20f3a03b018e999bfe83c068793f47b738219259
KVM: VMX: Avoid saving and restoring msrs on lightweight vmexit

In a lightweight exit (where we exit and reenter the guest without
scheduling or exiting to userspace in between), we don't need various
msrs on the host, and avoiding shuffling them around reduces raw exit
time by 8%.

i386 compile fix by Daniel Hecken <dh@bahntechnik.de>.

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