[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



ChangeSet 1.1256, 2005/03/23 12:50:40+00:00, mafetter@xxxxxxxxxxxxxxxx

        Prevent buddy-allocator merges across Xen/Domain zones boundary.
        
        Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxxxx>
        Signed-off-by: Michael A Fetterman <michael.fetterman@xxxxxxxxxxxx>



 page_alloc.c |    7 +++++++
 1 files changed, 7 insertions(+)


diff -Nru a/xen/common/page_alloc.c b/xen/common/page_alloc.c
--- a/xen/common/page_alloc.c   2005-04-05 12:16:56 -04:00
+++ b/xen/common/page_alloc.c   2005-04-05 12:16:56 -04:00
@@ -403,6 +403,13 @@
 
     memguard_guard_range(__va(ps), pe - ps);
 
+    /*
+     * Yuk! Ensure there is a one-page buffer between Xen and Dom zones, to
+     * prevent merging of power-of-two blocks across the zone boundary.
+     */
+    if ( !IS_XEN_HEAP_FRAME(phys_to_page(pe)) )
+        pe -= PAGE_SIZE;
+
     local_irq_save(flags);
     init_heap_pages(MEMZONE_XEN, phys_to_page(ps), (pe - ps) >> PAGE_SHIFT);
     local_irq_restore(flags);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.