Clear the Access/Dirty enable flag in EPTP after the negative testcase that verifies enabling A/D bits results in failed VM-Entry if A/D bits aren't supported. Leaving the A/D bit set causes the subsequent tests to fail on A/D-disabled hosts. Fixes: 1d70eb82 ("nVMX x86: Check EPTP on vmentry of L2 guests") Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- x86/vmx_tests.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c index ffe7064c..160b50fb 100644 --- a/x86/vmx_tests.c +++ b/x86/vmx_tests.c @@ -4750,6 +4750,8 @@ static void test_ept_eptp(void) eptp |= EPTP_AD_FLAG; test_eptp_ad_bit(eptp, false); + + eptp &= ~EPTP_AD_FLAG; } /* base-commit: f77fb696cfd0e4a5562cdca189be557946bf522f -- 2.48.1.601.g30ceb7b040-goog