qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 26/33] target-i386: test reserved PS bit on PML4Es


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 26/33] target-i386: test reserved PS bit on PML4Es
Date: Thu, 5 Jun 2014 16:22:16 +0200

Signed-off-by: Paolo Bonzini <address@hidden>
---
 target-i386/helper.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target-i386/helper.c b/target-i386/helper.c
index a8e4088..787fbba 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;
             }
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]