* [Qemu-devel] [5025] i386: Catch all non-present ptes in cpu_get_phys_page_debug ( Jan Kiszka)
@ 2008-08-18 18:00 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-08-18 18:00 UTC (permalink / raw)
To: qemu-devel
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 <jan.kiszka@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-18 18:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 18:00 [Qemu-devel] [5025] i386: Catch all non-present ptes in cpu_get_phys_page_debug ( Jan Kiszka) Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).