ia64/xen-unstable

changeset 4273:3b80053b6d5a

bitkeeper revision 1.1256 (42416620txO4y-haxDQfKlP_6mTC8Q)

Prevent buddy-allocator merges across Xen/Domain zones boundary.

Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
Signed-off-by: Michael A Fetterman <michael.fetterman@cl.cam.ac.uk>
author mafetter@fleming.research
date Wed Mar 23 12:50:40 2005 +0000 (2005-03-23)
parents 7613b44cc5e6
children d1854f84c551
files xen/common/page_alloc.c
line diff
     1.1 --- a/xen/common/page_alloc.c	Tue Mar 22 18:06:42 2005 +0000
     1.2 +++ b/xen/common/page_alloc.c	Wed Mar 23 12:50:40 2005 +0000
     1.3 @@ -403,6 +403,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);