]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
xen/arm32: head: Widen the use of the temporary mapping
authorJulien Grall <jgrall@amazon.com>
Sun, 16 Apr 2023 14:32:07 +0000 (15:32 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 19 Apr 2023 18:39:46 +0000 (19:39 +0100)
commiteed3ae84bcd10a69c24c3cb4b0b98e070bc65ee4
tree982e8f8ae0873528658628605d32ffac6ac26801
parentb33a5c5929bce66302fbfd680ac5b4091886079e
xen/arm32: head: Widen the use of the temporary mapping

At the moment, the temporary mapping is only used when the virtual
runtime region of Xen is clashing with the physical region.

In follow-up patches, we will rework how secondary CPU bring-up works
and it will be convenient to use the fixmap area for accessing
the root page-table (it is per-cpu).

Rework the code to use temporary mapping when the Xen physical address
is not overlapping with the temporary mapping.

This also has the advantage to simplify the logic to identity map
Xen.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Henry Wang <Henry.Wang@arm.com>
Tested-by: Henry Wang <Henry.Wang@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/arm32/head.S