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)
commita75beee6e4f5d2f0ae6e28cd626b2f157e93afd2
treeef5fcd31527f5e211526f65180be2a6f73a1783e
parentb3f37707b05e9ce82d5bec660e9d0b15452ee9a0
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