qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [5025] i386: Catch all non-present ptes in cpu_get_phys_pag


From: Anthony Liguori
Subject: [Qemu-devel] [5025] i386: Catch all non-present ptes in cpu_get_phys_page_debug ( Jan Kiszka)
Date: Mon, 18 Aug 2008 18:00:33 +0000

Revision: 5025
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5025
Author:   aliguori
Date:     2008-08-18 18:00:31 +0000 (Mon, 18 Aug 2008)

Log Message:
-----------
i386: Catch all non-present ptes in cpu_get_phys_page_debug (Jan Kiszka)

It helps debugging guests when yet unmapped pages are correctly reported
as, well, unmapped.

Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

Modified Paths:
--------------
    trunk/target-i386/helper.c

Modified: trunk/target-i386/helper.c
===================================================================
--- trunk/target-i386/helper.c  2008-08-18 14:19:42 UTC (rev 5024)
+++ trunk/target-i386/helper.c  2008-08-18 18:00:31 UTC (rev 5025)
@@ -1192,6 +1192,8 @@
             page_size = 4096;
             pte = ldq_phys(pte_addr);
         }
+        if (!(pte & PG_PRESENT_MASK))
+            return -1;
     } else {
         uint32_t pde;
 






reply via email to

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