summaryrefslogtreecommitdiff
path: root/arch/x86/xen/setup.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2015-07-17 07:51:31 +0300
committerDavid Vrabel <david.vrabel@citrix.com>2015-08-20 14:24:21 +0300
commit04414baab5ba862b10bde837c4773ffdbb78f0e0 (patch)
treea64d6d48e06caf60c2d676d769ec82c55f224201 /arch/x86/xen/setup.c
parent808fdb71936c41d46245f0e3aa6ec889cba70d97 (diff)
downloadlinux-04414baab5ba862b10bde837c4773ffdbb78f0e0.tar.xz
xen: check pre-allocated page tables for conflict with memory map
Check whether the page tables built by the domain builder are at memory addresses which are in conflict with the target memory map. If this is the case just panic instead of running into problems later. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Konrad Rzeszutek Wilk <Konrad.wilk@oracle.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'arch/x86/xen/setup.c')
-rw-r--r--arch/x86/xen/setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index 9bd3f358f3d9..3fca9c114828 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -802,6 +802,12 @@ char * __init xen_memory_setup(void)
BUG();
}
+ /*
+ * Check for a conflict of the hypervisor supplied page tables with
+ * the target E820 map.
+ */
+ xen_pt_check_e820();
+
xen_reserve_xen_mfnlist();
/*