kexec/x86: Do not map crash kernel area
PATCH v2 1/1 kexec/x86: Do not map crash kernel area
It looks that crash kernel area was mapped deliberately. However, there is no any references to that mapping in new and even old kexec code. Additionally, commit messages does not explain why this mapping was made. kexec and kdump tests (new and old version) show that they are working without this mapping. Hence, if it is not used and everything works with out it then remove relevant code and do not crate crash kernel area mapping anymore.
Signed-off-by Daniel Kiper <[email protected]>
--- xen/arch/x86/setup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
xen/arch/x86/setup.c +1 -3
@@ -1097,9 +1097,7 @@ void __init __start_xen(unsigned long mbi_p) mod[i].mod_start, PFN_UP(mod[i].mod_end), PAGE_HYPERVISOR); } -map_pages_to_xen ((unsigned long )__va (kexec_crash_area.start), - kexec_crash_area.start >>PAGE_SHIFT , -PFN_UP (kexec_crash_area.size),PAGE_HYPERVISOR ); + xen_virt_end = ((unsigned long )_end + (1UL <<L2_PAGETABLE_SHIFT ) -1 ) & ~((1UL <<L2_PAGETABLE_SHIFT ) -1 );destroy_xen_mappings (xen_virt_end,XEN_VIRT_START +BOOTSTRAP_MAP_BASE );
Signature · 1 line
1.7.10.4