From 5e213f0f4d2ca4f286f8423316ed8090bcc5fef8 Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Mon, 24 Jul 2023 11:14:58 +0100 Subject: [PATCH] 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 ---- This patch was originally part of [1] but it was reverted due to Xen not booting on the Arndale. The second patch of this series is fixing it (confirmed by booting on the Arndale). So I am including this patch. [1] https://lore.kernel.org/xen-devel/20230416143211.72227-1-julien@xen.org/ Changes in new v2: - Rebase - Drop reviewed-by tags Changelog from the previous series: Changes in v6: - Add Henry's reviewed-by and tested-by tag - Add Michal's reviewed-by - Add newline in remove_identity_mapping for clarity Changes in v5: - Fix typo in a comment - No need to link boot_{second, third}_id again if we need to create a temporary area. Changes in v3: - Resolve conflicts after switching from "ldr rX,