]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Further reduce efer reloads
authorAvi Kivity <avi@qumranet.com>
Wed, 29 Aug 2007 00:48:05 +0000 (03:48 +0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:47 +0000 (17:52 +0200)
commiteea9f5b5e25707c70fc6723347146f43da3d4426
tree8b16dd35e100af2feec42306348896a6ef198a50
parent1aebe4ceef102be7c84ac50ef063f7802ebfffc7
KVM: VMX: Further reduce efer reloads

KVM avoids reloading the efer msr when the difference between the guest
and host values consist of the long mode bits (which are switched by
hardware) and the NX bit (which is emulated by the KVM MMU).

This patch also allows KVM to ignore SCE (syscall enable) when the guest
is running in 32-bit mode.  This is because the syscall instruction is
not available in 32-bit mode on Intel processors, so the SCE bit is
effectively meaningless.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c