ia64/xen-unstable
changeset 4017:02e17ce32b91
bitkeeper revision 1.1159.258.27 (422ddcd5Cf-97FdGP6TJyFvIxer4Mg)
Prevent buddy-allocator merges across Xen/Domain zones boundary.
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
Prevent buddy-allocator merges across Xen/Domain zones boundary.
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Tue Mar 08 17:11:49 2005 +0000 (2005-03-08) |
parents | 4755ec1437fb |
children | 62ae1c72e905 d779cc1ad0ae |
files | xen/common/page_alloc.c |
line diff
1.1 --- a/xen/common/page_alloc.c Tue Mar 08 15:57:54 2005 +0000 1.2 +++ b/xen/common/page_alloc.c Tue Mar 08 17:11:49 2005 +0000 1.3 @@ -392,6 +392,13 @@ void init_xenheap_pages(unsigned long ps 1.4 1.5 memguard_guard_range(__va(ps), pe - ps); 1.6 1.7 + /* 1.8 + * Yuk! Ensure there is a one-page buffer between Xen and Dom zones, to 1.9 + * prevent merging of power-of-two blocks across the zone boundary. 1.10 + */ 1.11 + if ( !IS_XEN_HEAP_FRAME(phys_to_page(pe)) ) 1.12 + pe -= PAGE_SIZE; 1.13 + 1.14 local_irq_save(flags); 1.15 init_heap_pages(MEMZONE_XEN, phys_to_page(ps), (pe - ps) >> PAGE_SHIFT); 1.16 local_irq_restore(flags);