|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 14/17] xenpaging: prevent page-out of first 16MB
This is more a workaround than a bugfix:
Don't page out first 16MB of memory.
When the BIOS does its initialization process and xenpaging removes pages,
crashes will occour due to lack of support of xenpaging.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
tools/xenpaging/policy_default.c | 4 ++++
1 file changed, 4 insertions(+)
--- xen-unstable.hg-4.1.22459.orig/tools/xenpaging/policy_default.c
+++ xen-unstable.hg-4.1.22459/tools/xenpaging/policy_default.c
@@ -60,6 +60,10 @@ int policy_init(xenpaging_t *paging)
for ( i = 0; i < MRU_SIZE; i++ )
mru[i] = INVALID_MFN;
+ /* Don't page out first 16MB */
+ for ( i = 0; i < ((16*1024*1024)/4096); i++ )
+ set_bit(i, bitmap);
+
/* Leave a hole for pagetables */
for ( i = 0; i < max_pages; i++ )
set_bit(i, bitmap);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/17] xenpaging changes for xen-unstable, Olaf Hering
- [Xen-devel] [PATCH 04/17] xenpaging: print number of evicted pages, Olaf Hering
- [Xen-devel] [PATCH 09/17] xenpaging: update machine_to_phys_mapping[] during page deallocation, Olaf Hering
- [Xen-devel] [PATCH 01/17] xenpaging: close xch handle in xenpaging_init error path, Olaf Hering
- [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
|
|
|
|
|