x86/vmx: Fix VMEntry failure on ADL/SPR with shadow guests
PATCH 1/1 x86/vmx: Fix VMEntry failure on ADL/SPR with shadow guests
Paging Writeable depends on EPT, so must disabled in non-EPT guests like the other EPT dependent features. Otherwise, VMEntry fails with bad control state.
Drop a piece of trailing whitepsace in context.
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Petr Beneš <[email protected]>
CC: Tamas K Lengyel <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
This is the cause of the XTF Shadow failures in Gitlab CI. Working run:
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/10133481327
--- xen/arch/x86/hvm/vmx/vmcs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
xen/arch/x86/hvm/vmx/vmcs.c +3 -1
@@ -1132,9 +1132,11 @@ static int construct_vmcs(struct vcpu *v)else { v->arch.hvm.vmx.secondary_exec_control &= - ~(SECONDARY_EXEC_ENABLE_EPT | + ~(SECONDARY_EXEC_ENABLE_EPT |SECONDARY_EXEC_UNRESTRICTED_GUEST |SECONDARY_EXEC_ENABLE_INVPCID ); + v->arch.hvm.vmx.tertiary_exec_control &= + ~(TERTIARY_EXEC_EPT_PAGING_WRITE ); vmexit_ctl &= ~(VM_EXIT_SAVE_GUEST_PAT |VM_EXIT_LOAD_HOST_PAT ); vmentry_ctl &= ~VM_ENTRY_LOAD_GUEST_PAT ;
Signature · 1 line
2.39.5
Quoted 8 lines · Andrew Cooper
Paging Writeable depends on EPT, so must disabled in non-EPT guests like the other EPT dependent features. Otherwise, VMEntry fails with bad control state.
Drop a piece of trailing whitepsace in context.
Fixes ff10aa9d8f90 ("x86: Add Support for Paging-Write Feature")Signed-off-by Andrew Cooper <[email protected]>
Thanks, Roger.