xen: make phys_to_machine structure dynamic
We now support the use of memory hotplug, so the physical to machine page mapping structure must be dynamic. This is implemented as a two-level radix tree structure, which allows us to efficiently incrementally allocate memory for the p2m table as new pages are added. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Thomas Gleixner
parent
955d6f1778
commit
d451bb7aa8
@ -1221,7 +1221,7 @@ asmlinkage void __init xen_start_kernel(void)
|
||||
|
||||
/* Get mfn list */
|
||||
if (!xen_feature(XENFEAT_auto_translated_physmap))
|
||||
phys_to_machine_mapping = (unsigned long *)xen_start_info->mfn_list;
|
||||
xen_build_dynamic_phys_to_machine();
|
||||
|
||||
pgd = (pgd_t *)xen_start_info->pt_base;
|
||||
|
||||
|
Reference in New Issue
Block a user