|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 13/17] xenpaging: page only pagetables for debugging
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>
|
- [Xen-devel] [PATCH 02/17] xenpaging: remove perror usage in xenpaging_init error path, (continued)
- [Xen-devel] [PATCH 02/17] xenpaging: remove perror usage in xenpaging_init error path, Olaf Hering
- [Xen-devel] [PATCH 03/17] xenpaging: print DPRINTF ouput if XENPAGING_DEBUG is in environment, Olaf Hering
- [Xen-devel] [PATCH 06/17] xenpaging: do not use DPRINTF/ERROR if xch handle is unavailable, Olaf Hering
- [Xen-devel] [PATCH 14/17] xenpaging: prevent page-out of first 16MB, Olaf Hering
- [Xen-devel] [PATCH 08/17] xenpaging: make vcpu_sleep_nosync() optional in mem_event_check_ring(), Olaf Hering
- [Xen-devel] [PATCH 10/17] xenpaging: update machine_to_phys_mapping[] during page-in, Olaf Hering
- [Xen-devel] [PATCH 07/17] xenpaging: update xch usage, Olaf Hering
- [Xen-devel] [PATCH 05/17] xenpaging: remove duplicate xc_interface_close call, Olaf Hering
- [Xen-devel] [PATCH 13/17] xenpaging: page only pagetables for debugging,
Olaf Hering <=
- [Xen-devel] [PATCH 11/17] xenpaging: drop paged pages in guest_remove_page, Olaf Hering
- [Xen-devel] [PATCH 17/17] xenpaging: (sparse) documenation, Olaf Hering
- [Xen-devel] [PATCH 12/17] xenpaging: handle HVMCOPY_gfn_paged_out in copy_from/to_user, Olaf Hering
- [Xen-devel] [PATCH 15/17] xenpaging: start xenpaging via config option, Olaf Hering
- [Xen-devel] [PATCH 16/17] xenpaging: add dynamic startup delay for xenpaging, Olaf Hering
|
|
|
|
|