[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [LINUX][X86/64] Initialise pages outside initial allocation so that
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 4df81d20a9a1a8dfbe47d1b5697122559d7b6cc9 # Parent 5a0ed6c476732da229c3307ea5357cdd196e5462 [LINUX][X86/64] Initialise pages outside initial allocation so that they are picked up by the balloon driver. From: Jan Beulich Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c | 7 +++++++ 1 files changed, 7 insertions(+) diff -r 5a0ed6c47673 -r 4df81d20a9a1 linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c --- a/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c Fri Jun 09 14:29:00 2006 +0100 +++ b/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c Fri Jun 09 16:18:40 2006 +0100 @@ -882,6 +882,7 @@ void __init mem_init(void) void __init mem_init(void) { long codesize, reservedpages, datasize, initsize; + unsigned long pfn; contiguous_bitmap = alloc_bootmem_low_pages( (end_pfn + 2*BITS_PER_LONG) >> 3); @@ -910,6 +911,12 @@ void __init mem_init(void) #else totalram_pages = free_all_bootmem(); #endif + /* XEN: init and count pages outside initial allocation. */ + for (pfn = xen_start_info->nr_pages; pfn < max_pfn; pfn++) { + ClearPageReserved(&mem_map[pfn]); + set_page_count(&mem_map[pfn], 1); + totalram_pages++; + } reservedpages = end_pfn - totalram_pages - e820_hole_size(0, end_pfn); after_bootmem = 1; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |