]> xenbits.xensource.com Git - xen.git/commit
xen/page_alloc: statically allocate bootmem_region_list
authorHongyan Xia <hongyxia@amazon.com>
Tue, 17 Dec 2019 14:33:19 +0000 (14:33 +0000)
committerJulien Grall <julien@xen.org>
Tue, 17 Dec 2019 16:51:20 +0000 (16:51 +0000)
commitc61c1b49430527ee16fbf5b55aca195c325b1a23
tree17dda201ca1592ae725d4c10b9bde17851438785
parentf796d92ac48299d929c6c06ac3b5fa5eaf7676c5
xen/page_alloc: statically allocate bootmem_region_list

The existing code assumes that the first mfn passed to the boot
allocator is mapped, which creates problems when, e.g., we do not have
a direct map, and may create other bootstrapping problems in the
future. Make it static. The size is kept the same as before (1 page).

Signed-off-by: Hongyan Xia <hongyxia@amazon.com>
Reviewed-by: Julien Grall <julien@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c