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)
commit84ad33ef5dbc12665ad42ee07a2daed473d3ec54
tree1adcc15df88e869c528ec0715504adec78a6c046
parent61d2ef2ce3e0161bedf5d2867f546a8df77fa9bc
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