]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7305926af4fbf2d7aa90b091e45365ef83c79b1f
tree2eadec89b6429d14d08171e99b0ba8e684e8d054
parent77c39308957b09a588f692c6c869ec5b5e34712d
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