KVM: VMX: Optimize atomic EFER load
authorAvi Kivity <avi@redhat.com>
Tue, 21 Dec 2010 10:54:20 +0000 (12:54 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:09 +0000 (11:31 +0200)
commit110312c84b5fbd4daf5de2417fa8ab5ec883858d
tree704d8c4925d2ba236a0e6e97ee0733339210bce5
parent07c116d2f53d721377fe428d067e2cecf80c906e
KVM: VMX: Optimize atomic EFER load

When NX is enabled on the host but not on the guest, we use the entry/exit
msr load facility, which is slow.  Optimize it to use entry/exit efer load,
which is ~1200 cycles faster.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c