qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [RESEND #3][PATCH] i386: Catch all non-present ptes


From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: [RESEND #3][PATCH] i386: Catch all non-present ptes in cpu_get_phys_page_debug
Date: Mon, 18 Aug 2008 13:00:38 -0500
User-agent: Thunderbird 2.0.0.16 (X11/20080723)

Jan Kiszka wrote:
It helps debugging guests when yet unmapped pages are correctly reported
as, well, unmapped.

Applied.  Thanks.

Regards,

Anthony Liguori

Signed-off-by: Jan Kiszka <address@hidden>
---
 target-i386/helper.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: b/target-i386/helper.c
===================================================================
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -1192,6 +1192,8 @@ target_phys_addr_t cpu_get_phys_page_deb
             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]