]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Atomically switch efer if EPT && !EFER.NX
authorAvi Kivity <avi@redhat.com>
Wed, 28 Apr 2010 13:42:29 +0000 (16:42 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 19 May 2010 08:36:32 +0000 (11:36 +0300)
commit8192d1757a7ef87e046ed11cdee42adc0fb887ed
tree1adcc15df88e869c528ec0715504adec78a6c046
parent37a2e3f7758a3e8bdd70ee52cee532a316b147e7
KVM: VMX: Atomically switch efer if EPT && !EFER.NX

When EPT is enabled, we cannot emulate EFER.NX=0 through the shadow page
tables.  This causes accesses through ptes with bit 63 set to succeed instead
of failing a reserved bit check.

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