diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-27 12:39:23 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-05 16:10:34 +0200 |
commit | b728464ae823a220d3b698d2ce055b2ceec0e297 (patch) | |
tree | 27b731bcee405d54f84b22207b66112cc391c7f7 /target-i386 | |
parent | c1eb2fa3fd5c811dd35d26f8b17551cc1171d8de (diff) |
target-i386: test reserved PS bit on PML4Es
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c index a8e4088b02..787fbba9fe 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -580,6 +580,9 @@ int x86_cpu_handle_mmu_fault(CPUState *cs, vaddr addr, if (!(pml4e & PG_PRESENT_MASK)) { goto do_fault; } + if (pml4e & PG_PSE_MASK) { + goto do_fault_rsvd; + } if (!(env->efer & MSR_EFER_NXE) && (pml4e & PG_NX_MASK)) { goto do_fault_rsvd; } |