x86: unilaterally remove .init mappings
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Feb 2016 12:07:43 +0000 (13:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2016 12:07:43 +0000 (13:07 +0100)
commit53aa3dde17c71e4f01a9e99a16a95064efcab179
treefde2bce40fb9d71dbc0013182aa302e892d1de2a
parentcf393624eec34e11275e83d2db01994b922e0673
x86: unilaterally remove .init mappings

Because of the new 2M alignment of .init and .bss, the existing memory
guarding infrastructure causes a shattered 2M superpage with non-present
entries for .init, and present entries for the alignment space.

Do away with the difference in behaviour between debug and non-debug builds;
always destroy the .init mappings, and reuse the space for xenheap.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <JBeulich@suse.com>
xen/arch/x86/setup.c
xen/arch/x86/xen.lds.S