On 16/03/2025 20:24, Luca Fancellu wrote: > > > From: Penny Zheng <penny.zh...@arm.com> > > virt_to_maddr and maddr_to_virt are used widely in Xen code. So > even there is no VMSA in MPU system, we keep the interface in MPU to > to avoid changing the existing common code. > > In order to do that, move the virt_to_maddr() and maddr_to_virt() > definitions to mmu/mm.h, move the include of memory management > subsystems (MMU/MPU) on a different place because the mentioned > helpers needs visibility of some macro in asm/mm.h. > > Finally implement virt_to_maddr() and maddr_to_virt() for MPU systems > under mpu/mm.h, the MPU version of virt/maddr conversion is simple since > VA==PA. > > Signed-off-by: Penny Zheng <penny.zh...@arm.com> > Signed-off-by: Wei Chen <wei.c...@arm.com> > Signed-off-by: Luca Fancellu <luca.fance...@arm.com> Reviewed-by: Michal Orzel <michal.or...@amd.com> ~Michal
- [PATCH v2 0/7] MPU mm subsystem skeleton Luca Fancellu
- [PATCH v2 7/7] arm/mpu: Create the skeleton for MPU com... Luca Fancellu
- [PATCH v2 6/7] xen: introduce Kconfig HAS_PAGING_MEMPOO... Luca Fancellu
- Re: [PATCH v2 6/7] xen: introduce Kconfig HAS_PAGIN... Jan Beulich
- Re: [PATCH v2 6/7] xen: introduce Kconfig HAS_P... Luca Fancellu
- Re: [PATCH v2 6/7] xen: introduce Kconfig H... Jan Beulich
- Re: [PATCH v2 6/7] xen: introduce Kconfig HAS_PAGIN... Orzel, Michal
- [PATCH v2 1/7] arm/mpu: Add HYPERVISOR_VIRT_START and a... Luca Fancellu
- [PATCH v2 4/7] arm/mpu: Kconfig symbols for MPU build Luca Fancellu
- [PATCH v2 2/7] xen/arm: Implement virt/maddr conversion... Luca Fancellu
- Re: [PATCH v2 2/7] xen/arm: Implement virt/maddr co... Orzel, Michal
- [PATCH v2 3/7] xen/arm: Introduce frame_table and virt_... Luca Fancellu
- Re: [PATCH v2 3/7] xen/arm: Introduce frame_table a... Orzel, Michal
- Re: [PATCH v2 3/7] xen/arm: Introduce frame_tab... Luca Fancellu
- Re: [PATCH v2 3/7] xen/arm: Introduce frame... Orzel, Michal
- Re: [PATCH v2 3/7] xen/arm: Introduce ... Luca Fancellu
- [PATCH v2 5/7] arm/mpu: Implement stubs for ioremap_att... Luca Fancellu