|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH early-RFC 2/5] xen/arm64: Rework the memory layout
Hi, On 25/03/2022 14:05, Bertrand Marquis wrote: On 25 Mar 2022, at 14:35, Julien Grall <julien@xxxxxxx> wrote: On 25/03/2022 13:17, Bertrand Marquis wrote:Hi Julien,Hi,On 9 Mar 2022, at 12:20, Julien Grall <julien@xxxxxxx> wrote: From: Julien Grall <jgrall@xxxxxxxxxx> Xen is currently not fully compliant with the Arm because it willI think you wanted to say “arm arm” her.Yes. I will update it.switch the TTBR with the MMU on. In order to be compliant, we need to disable the MMU before switching the TTBR. The implication is the page-tables should contain an identity mapping of the code switching the TTBR. If we don't rework the memory layout, we would need to find a virtual address that matches a physical address and doesn't clash with the static virtual regions. This can be a bit tricky.This sentence is a bit misleading. Even with the rework you need to do that just by moving the Xen virtual address upper you make sure that anything physical memory under 512GB can be mapped 1:1 without clashing with other Xen mappings (unless Xen is loaded in memory at physical address 512GB which would end in the same issue).So the key difference is with the rework, it is trivial to create the 1:1 mapping as we know it doesn't clash. This is not the case without the rework.AgreeI think should be rephrased.I am not entirely sure how to rephrase it. Do you have a proposal?Turn it into the positive: Rework the memory layout to put Xen over 512GB. This makes it trivial to create a 1:1 mapping, with the assumption that the physical memory is under 512GB. I will use this wording in the next version.
I have only encountered one board with the memory over 512GB. I can't remember whether it is AMD Seattle or X-Gene.
TBH, I would have preferred to keep the single instruction. AFAICT, the immediate should be either between 0 - 4095. Or a number between 4096 and 2^24 that is 4KB aligned. So it would not suit us here. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |