Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02120c45 authored by Bandan Das's avatar Bandan Das Committed by Paolo Bonzini
Browse files

kvm: vmx: advertise support for ept execute only



MMU now knows about execute only mappings, so
advertise the feature to L1 hypervisors

Signed-off-by: default avatarBandan Das <bsd@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent d95c5568
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2794,6 +2794,9 @@ static void nested_vmx_setup_ctls_msrs(struct vcpu_vmx *vmx)
		vmx->nested.nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT |
			 VMX_EPTP_WB_BIT | VMX_EPT_2MB_PAGE_BIT |
			 VMX_EPT_INVEPT_BIT;
		if (cpu_has_vmx_ept_execute_only())
			vmx->nested.nested_vmx_ept_caps |=
				VMX_EPT_EXECUTE_ONLY_BIT;
		vmx->nested.nested_vmx_ept_caps &= vmx_capability.ept;
		/*
		 * For nested guests, we don't do anything specific