aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorEddie Dong <eddie.dong@intel.com>2007-05-17 11:55:15 -0400
committerAvi Kivity <avi@qumranet.com>2007-07-16 05:05:41 -0400
commita75beee6e4f5d2f0ae6e28cd626b2f157e93afd2 (patch)
treeef5fcd31527f5e211526f65180be2a6f73a1783e /drivers/kvm/kvm.h
parentb3f37707b05e9ce82d5bec660e9d0b15452ee9a0 (diff)
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>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index fc4a6c1235f0..c252efed49d9 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -288,6 +288,10 @@ struct kvm_vcpu {
288 u64 apic_base; 288 u64 apic_base;
289 u64 ia32_misc_enable_msr; 289 u64 ia32_misc_enable_msr;
290 int nmsrs; 290 int nmsrs;
291 int save_nmsrs;
292#ifdef CONFIG_X86_64
293 int msr_offset_kernel_gs_base;
294#endif
291 struct vmx_msr_entry *guest_msrs; 295 struct vmx_msr_entry *guest_msrs;
292 struct vmx_msr_entry *host_msrs; 296 struct vmx_msr_entry *host_msrs;
293 297