On Wed, Feb 16, 2022, Cathy Avery wrote: > If ept_ad is not supported by the processor or has been > turned off via kvm module param, test_ept_eptp() will > incorrectly leave EPTP_AD_FLAG set in variable eptp > causing the following failures of subsequent > test_vmx_valid_controls calls: > > FAIL: Enable-EPT enabled; reserved bits [11:7] 0: vmlaunch succeeds > FAIL: Enable-EPT enabled; reserved bits [63:N] 0: vmlaunch succeeds > > Use the saved EPTP to restore the EPTP after each sub-test instead of > manually unwinding what was done by the sub-test, which is error prone > and hard to follow. > > Signed-off-by: Cathy Avery <cavery@xxxxxxxxxx> > --- Reviewed-by: Sean Christopherson <seanjc@xxxxxxxxxx> Thanks much for seeing this through!