x86: construct the {l2,l3}_bootmap at compile time
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Feb 2016 12:05:09 +0000 (13:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2016 12:05:09 +0000 (13:05 +0100)
commit2ce5963727b40c8bd4f08473f2ab7a442253a887
tree4927dc678a18a75a8fe91bab74508049ab575c92
parent0c15c49d4209bdb7bfa822e8ebbfe108015f54eb
x86: construct the {l2,l3}_bootmap at compile time

... rather than at runtime.

The bootmaps are discarded in zap_low_mappings(), so the tables themselves can
live in .init.data and be reclaimed after boot.

Hooking the l1_identmap into l2_xenmap stays for safety, along with a longer
comment explaining why.

This does not change the EFI construction of {l2,l3}_bootmap.  EFI already
constructs them cleanly in their relocated form.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/head.S
xen/arch/x86/boot/x86_64.S
xen/arch/x86/x86_64/mm.c