Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87d034f3 authored by Ian Campbell's avatar Ian Campbell Committed by Ingo Molnar
Browse files

x86/xen: fix DomU boot problem



Construct Xen guest e820 map with a hole between 640K-1M.

It's pure luck that Xen kernels have gotten away with it in the past.

The patch below seems like the right thing to do. It certainly boots in
a domU without the DMI problem (without any of the other related patches
such as Alexander's).

Signed-off-by: default avatarIan Campbell <ijc@hellion.org.uk>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Tested-by: default avatarMark McLoughlin <markmc@redhat.com>
Acked-by: default avatarMark McLoughlin <markmc@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 7c9e92b6
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,8 @@ char * __init xen_memory_setup(void)
	unsigned long max_pfn = xen_start_info->nr_pages;
	unsigned long max_pfn = xen_start_info->nr_pages;


	e820.nr_map = 0;
	e820.nr_map = 0;
	add_memory_region(0, PFN_PHYS(max_pfn), E820_RAM);
	add_memory_region(0, LOWMEMSIZE(), E820_RAM);
	add_memory_region(HIGH_MEMORY, PFN_PHYS(max_pfn)-HIGH_MEMORY, E820_RAM);


	return "Xen";
	return "Xen";
}
}