]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use shared msr infrastructure
authorAvi Kivity <avi@redhat.com>
Mon, 7 Sep 2009 08:14:12 +0000 (11:14 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:22 +0000 (09:32 +0200)
commit9de79f6d57be141e173c65ee4abdea5ff09cad86
treec64237caadf82729ca0d8aa9a9a66bdce27e66be
parentfabc575dbe9ce789de92d7a27b1946610d9e0be0
KVM: VMX: Use shared msr infrastructure

Instead of reloading syscall MSRs on every preemption, use the new shared
msr infrastructure to reload them at the last possible minute (just before
exit to userspace).

Improves vcpu/idle/vcpu switches by about 2000 cycles (when EFER needs to be
reloaded as well).

[jan: fix slot index missing indirection]

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c