KVM: VMX: fix SMEP and SMAP without EPT
authorRadim Krčmář <rkrcmar@redhat.com>
Mon, 2 Nov 2015 21:20:00 +0000 (22:20 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Nov 2015 15:24:37 +0000 (16:24 +0100)
commit656ec4a4928a3db7d16e5cb9bce351a478cfd3d5
tree2eadec89b6429d14d08171e99b0ba8e684e8d054
parent8a22f234a81ab4d1de5d948c3478608f08a9b844
KVM: VMX: fix SMEP and SMAP without EPT

The comment in code had it mostly right, but we enable paging for
emulated real mode regardless of EPT.

Without EPT (which implies emulated real mode), secondary VCPUs won't
start unless we disable SM[AE]P when the guest doesn't use paging.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c