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)
commit51c6cf662b4b361a09fbd324f4c67875d9bcfbea
tree8b16dd35e100af2feec42306348896a6ef198a50
parent3427318fd2244737a466a06a93c5fe579852f871
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
This page took 0.024271 seconds and 5 git commands to generate.