]> git.itanic.dy.fi Git - linux-stable/commit
KVM: nVMX: Disable unrestricted mode if ept=0
authorBandan Das <bsd@redhat.com>
Sat, 6 Dec 2014 15:02:16 +0000 (20:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2015 16:18:59 +0000 (08:18 -0800)
commitb48f65688dc020cc1a7eb3718be910a3e5681685
treef6183f1e4d96cee0fcc1f84d2402a3d138e4e955
parentdbb49267de1c0ce0874b232335851011fc1fb310
KVM: nVMX: Disable unrestricted mode if ept=0

commit 78051e3b7e35722ad3f31dd611f1b34770bddab8 upstream.

If L0 has disabled EPT, don't advertise unrestricted
mode at all since it depends on EPT to run real mode code.

Fixes: 92fbc7b195b824e201d9f06f2b93105f72384d65
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c