Skip to content

Commit

Permalink
target-i386: test reserved PS bit on PML4Es
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Jun 5, 2014
1 parent c1eb2fa commit b728464
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions target-i386/helper.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b728464

Please sign in to comment.