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)
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>

No differences found