Use PT64_NX_MASK and EFER_NX to set/clear the NX bits in the NPT tests. No functional change intended. Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- x86/svm_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x86/svm_tests.c b/x86/svm_tests.c index df4c60a..4bfde2c 100644 --- a/x86/svm_tests.c +++ b/x86/svm_tests.c @@ -707,16 +707,16 @@ static void npt_nx_prepare(struct svm_test *test) vmcb_ident(vmcb); pte = npt_get_pte((u64)null_test); - *pte |= (1ULL << 63); + *pte |= PT64_NX_MASK; } static bool npt_nx_check(struct svm_test *test) { u64 *pte = npt_get_pte((u64)null_test); - *pte &= ~(1ULL << 63); + *pte &= ~PT64_NX_MASK; - vmcb->save.efer |= (1 << 11); + 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