Bit 4 of the page-fault error code can only be set if efer.nx=1. Signed-off-by: Avi Kivity <avi@xxxxxxxxxx> --- kvm/user/test/x86/access.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kvm/user/test/x86/access.c b/kvm/user/test/x86/access.c index 5addd15..3338fbc 100644 --- a/kvm/user/test/x86/access.c +++ b/kvm/user/test/x86/access.c @@ -463,6 +463,8 @@ no_pte: fault: if (!at->expected_fault) at->ignore_pde = 0; + if (!at->flags[AC_CPU_EFER_NX]) + at->expected_error &= ~PFERR_FETCH_MASK; } static void ac_test_check(ac_test_t *at, _Bool *success_ret, _Bool cond, -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html