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

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Mon, 06 Dec 2010 21:59:20 +0100
  • Delivery-date: Mon, 06 Dec 2010 13:21:51 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.