qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4310] Do not attempt to set page flags for pages outside target address space
@ 2008-05-03 17:51 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-05-03 17:51 UTC (permalink / raw)
  To: qemu-devel

Revision: 4310
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4310
Author:   blueswir1
Date:     2008-05-03 17:51:24 +0000 (Sat, 03 May 2008)

Log Message:
-----------
Do not attempt to set page flags for pages outside target address space

Modified Paths:
--------------
    trunk/exec.c

Modified: trunk/exec.c
===================================================================
--- trunk/exec.c	2008-05-03 17:11:36 UTC (rev 4309)
+++ trunk/exec.c	2008-05-03 17:51:24 UTC (rev 4310)
@@ -227,6 +227,10 @@
             do {
                 n = fscanf (f, "%llx-%llx %*[^\n]\n", &startaddr, &endaddr);
                 if (n == 2) {
+                    startaddr = MIN(startaddr,
+                                    (1ULL << TARGET_PHYS_ADDR_SPACE_BITS) - 1);
+                    endaddr = MIN(endaddr,
+                                    (1ULL << TARGET_PHYS_ADDR_SPACE_BITS) - 1);
                     page_set_flags(TARGET_PAGE_ALIGN(startaddr),
                                    TARGET_PAGE_ALIGN(endaddr),
                                    PAGE_RESERVED); 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-03 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-03 17:51 [Qemu-devel] [4310] Do not attempt to set page flags for pages outside target address space Blue Swirl

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).