x86/boot: Drop incorrect mapping at l2_xenmap[0]
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 29 Nov 2021 16:09:08 +0000 (16:09 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Dec 2021 20:02:55 +0000 (20:02 +0000)
commita15b143a5f1c20dc6893bc3e50873e308ef61d87
tree5df48c322bc42614d264c3ba21413fbae06a3e5b
parenteb41074692094dff1413efb44fa4928a9140aa41
x86/boot: Drop incorrect mapping at l2_xenmap[0]

It has been 4 years since the default load address changed from 1M to 2M, and
_stext ceased residing in l2_xenmap[0].  We should not be inserting an unused
mapping.

To ensure we don't create mappings accidentally, loop from 0 and obey
_PAGE_PRESENT on all entries.

Fixes: 7ed93f3a0dff ("x86: change default load address from 1 MiB to 2 MiB")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/setup.c