Re: [PATCH v2 32/40] xen/mpu: implement MPU version of ioremap_xxx

2023-02-09 Thread Julien Grall
Hi, On 13/01/2023 05:29, Penny Zheng wrote: Function ioremap_xxx is normally being used to remap device address ranges in MMU system during device driver initialization. However, in MPU system, virtual translation is not supported and device memory layout is statically configured in Device

Re: [PATCH v2 32/40] xen/mpu: implement MPU version of ioremap_xxx

2023-01-13 Thread Jan Beulich
On 13.01.2023 06:29, Penny Zheng wrote: > --- a/xen/include/xen/vmap.h > +++ b/xen/include/xen/vmap.h > @@ -89,15 +89,27 @@ static inline void vfree(void *va) > ASSERT_UNREACHABLE(); > } > > +#ifdef CONFIG_HAS_MPU > +void __iomem *ioremap(paddr_t, size_t); > +#else > void __iomem

[PATCH v2 32/40] xen/mpu: implement MPU version of ioremap_xxx

2023-01-12 Thread Penny Zheng
Function ioremap_xxx is normally being used to remap device address ranges in MMU system during device driver initialization. However, in MPU system, virtual translation is not supported and device memory layout is statically configured in Device Tree, and being mapped at very early stage. So