* [PATCH 1/3] xen: reserve Xen-specific memory in e820 map
@ 2008-06-16 21:54 Jeremy Fitzhardinge
0 siblings, 0 replies; only message in thread
From: Jeremy Fitzhardinge @ 2008-06-16 21:54 UTC (permalink / raw)
To: the arch/x86 maintainers; +Cc: Yinghai Lu, Linux Kernel Mailing List
Make sure that the start_info and pfn->mfn translation array are reserved.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
---
arch/x86/xen/setup.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
===================================================================
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -40,8 +40,21 @@
max_pfn = min(MAX_DOMAIN_PAGES, max_pfn);
e820.nr_map = 0;
+
e820_add_region(0, LOWMEMSIZE(), E820_RAM);
e820_add_region(HIGH_MEMORY, PFN_PHYS(max_pfn)-HIGH_MEMORY, E820_RAM);
+
+ /*
+ * Reserve Xen bits:
+ * - mfn_list
+ * - xen_start_info
+ * See comment above "struct start_info" in <xen/interface/xen.h>
+ */
+ e820_add_region(__pa(xen_start_info->mfn_list),
+ xen_start_info->pt_base - xen_start_info->mfn_list,
+ E820_RESERVED);
+
+ sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
return "Xen";
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-16 21:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 21:54 [PATCH 1/3] xen: reserve Xen-specific memory in e820 map Jeremy Fitzhardinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox