|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 18/21] 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 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- xen-unstable.hg-4.1.22433.orig/tools/xenpaging/policy_default.c
+++ xen-unstable.hg-4.1.22433/tools/xenpaging/policy_default.c
@@ -60,8 +60,9 @@ 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);
+ /* Don't page out first 16MB */
+ for ( i = 0; i < ((16*1024*1024)/4096); i++ )
+ set_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 11/21] xenpaging: optimize p2m_mem_paging_populate, (continued)
- [Xen-devel] [PATCH 11/21] xenpaging: optimize p2m_mem_paging_populate, Olaf Hering
- [Xen-devel] [PATCH 13/21] xenpaging: handle temporary out-of-memory conditions during page-in, Olaf Hering
- [Xen-devel] [PATCH 09/21] xenpaging: allow negative num_pages and limit num_pages, Olaf Hering
- [Xen-devel] [PATCH 06/21] xenpaging: print info when free request slots drop below 2, Olaf Hering
- [Xen-devel] [PATCH 12/21] xenpaging: print xenpaging cmdline options, Olaf Hering
- [Xen-devel] [PATCH 08/21] xenpaging: notify policy only on resume, Olaf Hering
- [Xen-devel] [PATCH 14/21] xenpaging: increase recently used pages from 4MB to 64MB, Olaf Hering
- [Xen-devel] [PATCH 05/21] xenpaging: add signal handling, Olaf Hering
- [Xen-devel] [PATCH 10/21] xenpaging: when populating a page, check if populating is already in progress, Olaf Hering
- [Xen-devel] [PATCH 18/21] xenpaging: prevent page-out of first 16MB,
Olaf Hering <=
- [Xen-devel] [PATCH 21/21] xenpaging: (sparse) documenation, Olaf Hering
- [Xen-devel] [PATCH 20/21] xenpaging: add dynamic startup delay for xenpaging, Olaf Hering
- [Xen-devel] [PATCH 16/21] xenpaging: drop paged pages in guest_remove_page, Olaf Hering
- [Xen-devel] [PATCH 15/21] xenpaging: update machine_to_phys_mapping during page-in and page deallocation, Olaf Hering
- [Xen-devel] [PATCH 17/21] xenpaging: handle HVMCOPY_gfn_paged_out in copy_from/to_user, Olaf Hering
- [Xen-devel] [PATCH 19/21] xenpaging: start xenpaging via config option, Olaf Hering
|
|
|
|
|