Remove a bizarre modification of the guest's EFER.NX from the NPT NX test. For reasons unknown, the NPT NX test forces EFER.NX in the guest _after_ running the test. Now that the v1 infrastructure saves/restores guest EFER across the test, the motivation, whatever thay may have been, is moot because the forced EFER.NX value won't persist. Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- x86/svm_tests.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/x86/svm_tests.c b/x86/svm_tests.c index 96add48..b1783f8 100644 --- a/x86/svm_tests.c +++ b/x86/svm_tests.c @@ -718,8 +718,6 @@ static bool npt_nx_check(struct svm_test *test) *pte &= ~PT64_NX_MASK; - vmcb->save.efer |= EFER_NX; - return (vmcb->control.exit_code == SVM_EXIT_NPF) && (vmcb->control.exit_info_1 == 0x100000015ULL); } -- 2.32.0.288.g62a8d224e6-goog