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



Reply via email to