On 25/06/2023 22:49, Julien Grall wrote: > > > From: Julien Grall <jgr...@amazon.com> > > At the moment, we are mapping the size of the reserved area for Xen > (i.e. 2MB) even if the binary is smaller. We don't exactly know what's > after Xen, so it is not a good idea to map more than necessary for a > couple of reasons: > * We would need to use break-before-make if the extra PTE needs to > be updated to point to another region > * The extra area mapped may be mapped again by Xen with different > memory attribute. This would result to attribue mismatch. > > Therefore, rework the logic in create_page_tables() to map only what's > necessary. To simplify the logic, we also want to make sure _end > is page-aligned. So align the symbol in the linker and add an assert > to catch any change. > > Signed-off-by: Julien Grall <jgr...@amazon.com> The same comments apply as for the previous patch. But all in all: Reviewed-by: Michal Orzel <michal.or...@amd.com> ~Michal
- RE: [PATCH 1/9] xen/arm: Check Xen size when linking Henry Wang
- Re: [PATCH 1/9] xen/arm: Check Xen size when lin... Julien Grall
- Re: [PATCH 1/9] xen/arm: Check Xen size when linking Michal Orzel
- Re: [PATCH 1/9] xen/arm: Check Xen size when lin... Julien Grall
- [PATCH 4/9] xen/arm32: head: Remove 'r6' from the clobber... Julien Grall
- RE: [PATCH 4/9] xen/arm32: head: Remove 'r6' from th... Henry Wang
- Re: [PATCH 4/9] xen/arm32: head: Remove 'r6' from th... Michal Orzel
- Re: [PATCH 4/9] xen/arm32: head: Remove 'r6' from th... Bertrand Marquis
- [PATCH 3/9] xen/arm32: head: Don't map too much in boot_t... Julien Grall
- Re: [PATCH 3/9] xen/arm32: head: Don't map too much ... Michal Orzel
- [PATCH 7/9] xen/arm64: head: Rework PRINT() to work when ... Julien Grall
- [PATCH 6/9] xen/arm64: entry: Don't jump outside of an al... Julien Grall
- [PATCH 5/9] xen/arm: Rework the code mapping Xen to avoid... Julien Grall
- Re: [PATCH 5/9] xen/arm: Rework the code mapping Xen... Michal Orzel
- Re: [PATCH 5/9] xen/arm: Rework the code mapping... Julien Grall
- Re: [PATCH 5/9] xen/arm: Rework the code map... Michal Orzel
- [PATCH 8/9] xen/arm: Allow the user to build Xen with USB... Julien Grall