Hi Julien, On 21.02.2022 11:22, Julien Grall wrote: > From: Julien Grall <jgr...@amazon.com> > > Currently, Xen PT helpers are only working with 4KB page granularity > and open-code the generic helpers. To allow more flexibility, we can > re-use the generic helpers and pass Xen's page granularity > (PAGE_SHIFT). > > As Xen PT helpers are used in both C and assembly, we need to move > the generic helpers definition outside of the !__ASSEMBLY__ section. > > Take the opportunity to prefix LPAE_ENTRIES, LPAE_ENTRIES and > LPAE_ENTRIES_MASK with XEN_PT_. > > Note the aliases for each level are still kept for the time being so we > can avoid a massive patch to change all the callers. > > Signed-off-by: Julien Grall <jgr...@amazon.com> > > --- > Changes in v3: > - Prefix the new define with XEN_PT_ > > Changes in v2: > - New patch > --- > xen/arch/arm/arm32/head.S | 14 +++---- > xen/arch/arm/arm64/head.S | 14 +++---- > xen/arch/arm/include/asm/lpae.h | 73 ++++++++++++++++++--------------- > xen/arch/arm/mm.c | 33 ++++++++------- > xen/arch/arm/p2m.c | 13 +++--- > 5 files changed, 80 insertions(+), 67 deletions(-) >
Reviewed-by: Michal Orzel <michal.or...@arm.com> Cheers, Michal