]> xenbits.xensource.com Git - people/dwmw2/xen.git/commit
xen/arm64: head: Move assembly switch to the runtime PT in secondary CPUs path
authorJulien Grall <julien.grall@arm.com>
Mon, 15 Apr 2019 11:14:38 +0000 (12:14 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 31 Jul 2019 19:33:38 +0000 (20:33 +0100)
commit9c20f63c1b6da8a906ab985f21472c9e55865b07
treee23d2071d8e9b7889bd4085a60ed9f6080b705c4
parent2033833b87948c13201c83022bac76b758d8e4cb
xen/arm64: head: Move assembly switch to the runtime PT in secondary CPUs path

The assembly switch to the runtime PT is only necessary for the
secondary CPUs. So move the code in the secondary CPUs path.

While this is definitely not compliant with the Arm Arm as we are
switching between two differents set of page-tables without turning off
the MMU. Turning off the MMU is impossible here as the ID map may clash
with other mappings in the runtime page-tables. This will require more
rework to avoid the problem. So for now add a TODO in the code.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/head.S