]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bc6700e4de95327ec31c398682b76925c94f80a
tree704d8c4925d2ba236a0e6e97ee0733339210bce5
parent8c6d9796cbb8e47472f8cd50e66998944aca1284
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