|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v1 repost 1/4] arm/mmu: Move init_ttbr to a new section .data.idmap
On 17/01/2024 08:30, Michal Orzel wrote: Hi Julien, Hi Michal, On 16/01/2024 15:37, Julien Grall wrote:From: Julien Grall <jgrall@xxxxxxxxxx> With the upcoming work to color Xen, the binary will not be anymore physically contiguous. This will be a problem during boot as the assembly code will need to work out where each piece of Xen reside. An easy way to solve the issue is to have all code/data accessed by the secondary CPUs while the MMU is off within a single page. Right now, init_ttbr is used by secondary CPUs to find there page-tables before the MMU is on. Yet it is currently in .data which is unlikely to be within the same page as the rest of the idmap. Create a new section .data.idmap that will be used for variables accessed by the early boot code. The first one is init_ttbr. The idmap is currently part of the text section and therefore will be mapped read-only executable. This means that we need to temporarily remap init_ttbr in order to update it. Introduce a new function set_init_ttbr() for this purpose so the code is not duplicated between arm64 and arm32. Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx> with ... I don't see the problem of keeping the declaration in mmu/mm.h. In any case, this seems to be unrelated to this patch.
I can do that. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |