KVM: nVMX: Disable unrestricted mode if ept=0
authorBandan Das <bsd@redhat.com>
Sat, 6 Dec 2014 15:02:16 +0000 (20:32 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Dec 2014 11:26:15 +0000 (12:26 +0100)
If L0 has disabled EPT, don't advertise unrestricted
mode at all since it depends on EPT to run real mode code.

Fixes: 92fbc7b195b824e201d9f06f2b93105f72384d65
Cc: stable@vger.kernel.org
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c

Simple merge