diff mbox series

[kvm-unit-tests,07/12] nSVM: Remove a superfluous modification of guest EFER.NX in NPT NX test

Message ID 20210622210047.3691840-8-seanjc@google.com (mailing list archive)
State New, archived
Headers show
Series nSVM: NPT improvements and cleanups | expand

Commit Message

Sean Christopherson June 22, 2021, 9 p.m. UTC
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@google.com>
---
 x86/svm_tests.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

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);
 }