Skip to contentSkip to conversation

KVM: VMX: Disable unrestricted guest when EPT disabled

PATCH In review Sheng Yang 2 participants 2 messages Mar 18, 2010 – Apr 7, 2010

Subsystems (3)
lore
Share & tools
lore

Sheng Yang

author
#0 lore raw

PATCH 1/1 KVM: VMX: Disable unrestricted guest when EPT disabled

Otherwise would cause VMEntry failure when using ept=0 on unrestricted guest supported processors.

---

Please apply this to 2.6.32 stable. Thanks!

Patch already in the upstream, commit:
046d87103addc117f0d397196e85189722d4d7de

 arch/x86/kvm/vmx.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +3 -1
index 80367c5..1092e8a 100644
@@ -2316,8 +2316,10 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx)
 				~SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES;
 		if (vmx->vpid == 0)
 			exec_control &= ~SECONDARY_EXEC_ENABLE_VPID;
-		if (!enable_ept)
+		if (!enable_ept) {
 			exec_control &= ~SECONDARY_EXEC_ENABLE_EPT;
+			enable_unrestricted_guest = 0;
+		}
 		if (!enable_unrestricted_guest)
 			exec_control &= ~SECONDARY_EXEC_UNRESTRICTED_GUEST;
		vmcs_write32(SECONDARY_VM_EXEC_CONTROL, exec_control);
Signature · 1 line
1.5.4.5
#1 lore raw
Quoted 4 lines · Sheng Yang

Otherwise would cause VMEntry failure when using ept=0 on unrestricted guest supported processors.

Now included through a different submission.

thanks,

greg k-h