On 05/01/2026 12:35, Harry Ramsey wrote: > From: Luca Fancellu <[email protected]> > > During `init_done`, Xen sets the permissions of all symbols marked with > __ro_after_init to be read-only. This does not work on MPU systems at > present because part-region modification is not supported. > > Therefore introduce the function `modify_after_init_mappings` for MMU > and MPU, to handle the divergent approaches to setting permissions of > __ro_after_init symbols. > > For MPU systems `modify_xen_mappings` will shrink the RW mapping on one > side and extend the RO mapping on the other. This approach prevents > wasting an additional region between RW and RO mappings. > > As the new function is marked with __init, it needs to be called before > `free_init_memory`. > > Signed-off-by: Luca Fancellu <[email protected]> > Signed-off-by: Hari Limaye <[email protected]> > Signed-off-by: Harry Ramsey <[email protected]> Reviewed-by: Michal Orzel <[email protected]> ~Michal
- [PATCH v2 1/6] arm/mpu: Implement copy_from_paddr for M... Harry Ramsey
- Re: [PATCH v2 1/6] arm/mpu: Implement copy_from_pa... Orzel, Michal
- [PATCH v2 5/6] arm: Use secure hypervisor timer in MPU ... Harry Ramsey
- Re: [PATCH v2 5/6] arm: Use secure hypervisor time... Halder, Ayan Kumar
- Re: [PATCH v2 5/6] arm: Use secure hypervisor time... Orzel, Michal
- [PATCH v2 3/6] arm/mpu: Implement free_init_memory for ... Harry Ramsey
- Re: [PATCH v2 3/6] arm/mpu: Implement free_init_me... Orzel, Michal
- Re: [PATCH v2 3/6] arm/mpu: Implement free_ini... Luca Fancellu
- [PATCH v2 6/6] arm/mpu: Map domain page in AArch64 MPU ... Harry Ramsey
- [PATCH v2 4/6] arm/mpu: Introduce modify_after_init_map... Harry Ramsey
- Re: [PATCH v2 4/6] arm/mpu: Introduce modify_after... Orzel, Michal
- [PATCH v2 2/6] arm/mpu: Implement vmap functions for MP... Harry Ramsey
- Re: [PATCH v2 2/6] arm/mpu: Implement vmap functio... Orzel, Michal
- Re: [PATCH v2 2/6] arm/mpu: Implement vmap fun... Harry Ramsey
- Re: [PATCH v2 2/6] arm/mpu: Implement vmap... Harry Ramsey
- Re: [PATCH v2 2/6] arm/mpu: Implement vmap functio... Orzel, Michal
