]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/common alloc: release boot regions in order
authorLuca Miccio <206497@studenti.unimore.it>
Wed, 28 Aug 2019 19:50:03 +0000 (21:50 +0200)
committerLuca Miccio <206497@studenti.unimore.it>
Mon, 6 Jan 2020 13:59:40 +0000 (14:59 +0100)
Release the boot page regions in address-increasing order. This allows
quickly insertion of freed pages into the colored allocator's internal
data structures -- sorted lists.

Signed-off-by: Luca Miccio <206497@studenti.unimore.it>
Signed-off-by: Marco Solieri <marco.solieri@unimore.it>
xen/common/page_alloc.c

index d2736f1b2dc5fe25b710b415b2ebb450a94fa977..dcc04ca8e13608b1085e3e3bc3ebb16472216b3a 100644 (file)
@@ -1870,7 +1870,7 @@ void __init end_boot_allocator(void)
         }
     }
 
-    for ( i = nr_bootmem_regions; i-- > 0; )
+    for ( i = 0; i < nr_bootmem_regions; i++ )
     {
         struct bootmem_region *r = &bootmem_region_list[i];