WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 13/17] xenpaging: page only pagetables for debugging

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 13/17] xenpaging: page only pagetables for debugging
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Mon, 06 Dec 2010 21:59:20 +0100
Delivery-date: Mon, 06 Dec 2010 13:21:51 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1291669160; l=821; s=domk; d=aepfle.de; h=References:Subject:To:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=wfzwt4TCRtS4eIMxKLgFsMuzRoc=; b=KJFOX3O2T2wXiIshzdhkiZNF2pA6HaITYL58kxI1r8b5LuBXlgM3w9a2wH23PkF+ixc UWNs+BvxmV3EIi6+Skyf9c7IPYTH0uR5RAUhBt4R0cF1IFIM8jHqwEyO3euN1WTIoJSbJ iGwIxreEfA8frl+YezpUzRAyx/McGkQavA8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20101206205907.848643876@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: quilt/0.48-4.4
Page only page-tables with a Linux guest, needed to run __hvm_copy code paths

---
 tools/xenpaging/policy_default.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

--- xen-unstable.hg-4.1.22459.orig/tools/xenpaging/policy_default.c
+++ xen-unstable.hg-4.1.22459/tools/xenpaging/policy_default.c
@@ -26,7 +26,7 @@
 #include "policy.h"
 
 
-#define MRU_SIZE (1024 * 16)
+#define MRU_SIZE (1 << 4)
 
 
 static unsigned long mru[MRU_SIZE];
@@ -60,8 +60,11 @@ int policy_init(xenpaging_t *paging)
     for ( i = 0; i < MRU_SIZE; i++ )
         mru[i] = INVALID_MFN;
 
-    /* Don't page out page 0 */
-    set_bit(0, bitmap);
+    /* Leave a hole for pagetables */
+    for ( i = 0; i < max_pages; i++ )
+        set_bit(i, bitmap);
+    for ( i = 0x1800; i < 0x18ff; i++ )
+        clear_bit(i, bitmap);
 
  out:
     return rc;


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>