xen/arm: mm: Reduce the area that xen_second covers
authorJulien Grall <jgrall@amazon.com>
Fri, 29 Jul 2022 21:59:49 +0000 (22:59 +0100)
committerJulien Grall <julien@xen.org>
Fri, 29 Jul 2022 22:03:22 +0000 (23:03 +0100)
commit7451fdeb696df1fec33d7e5d6de8fa6676afee27
tree9683e18c105b93eb73bf63c606344d30c178acf6
parent68b01ef0b3c182d207bff01dd3e20d287668c855
xen/arm: mm: Reduce the area that xen_second covers

At the moment, xen_second is used to cover the first 2GB of the
virtual address space. With the recent rework of the page-tables,
only the first 1GB region (where Xen resides) is effectively used.

In addition to that, I would like to reshuffle the memory layout.
So Xen mappings may not be anymore in the first 2GB of the virtual
address space.

Therefore, rework xen_second so it only covers the 1GB region where
Xen will reside.

With this change, xen_second doesn't cover anymore the xenheap area
on arm32. So, we first need to add memory to the boot allocator before
setting up the xenheap mappings.

Take the opportunity to update the comments on top of xen_fixmap and
xen_xenmap.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/mm.c
xen/arch/arm/setup.c