On 11/07/2025 08:04, Hari Limaye wrote: > Hi Michal, > > Thank you for reviewing the patch. > > > >> > + /* Zeroing the region will also zero the region enable */ > >> > + memset(&xen_mpumap[index], 0, sizeof(pr_t)); > >> Is it ok that for a fast case (i.e. 0-31) our representation of prbar/prlar >> will > >> be different from the HW i.e. xen_mpumap[index] is 0 vs only .en bit of prlar > >> being 0 in HW? > > > > I think this should not matter - there is nothing reading registers directly > and > > all the decisions are taken looking into xen_mpumap. > > > > However, if you would prefer, we could alter the logic here to only clear the > .en > > bit in xen_mpumap[index] in the fast case, so that things remain consistent? > Alternatively we could always directly zero the entirety of the registers, but > then we would remove the use of the fast case entirely. I don't have a strong preference here. I think we can keep your current solution. ~Michal
- [PATCH v2 0/6] Second series for R82 MPU Support Hari Limaye
- [PATCH v2 5/6] arm/mpu: Implement early_fdt_map support... Hari Limaye
- Re: [PATCH v2 5/6] arm/mpu: Implement early_fdt_map... Orzel, Michal
- Re: [PATCH v2 5/6] arm/mpu: Implement early_fdt... Hari Limaye
- Re: [PATCH v2 5/6] arm/mpu: Implement early... Orzel, Michal
- [PATCH v2 1/6] arm/mpu: Find MPU region by range Hari Limaye
- Re: [PATCH v2 1/6] arm/mpu: Find MPU region by rang... Orzel, Michal
- [PATCH v2 4/6] arm/mpu: Destroy an existing entry in Xe... Hari Limaye
- Re: [PATCH v2 4/6] arm/mpu: Destroy an existing ent... Orzel, Michal
- Re: [PATCH v2 4/6] arm/mpu: Destroy an existing... Hari Limaye
- Re: [PATCH v2 4/6] arm/mpu: Destroy an exis... Orzel, Michal
- [PATCH v2 2/6] xen/arm: Introduce flags_has_rwx helper Hari Limaye
- [PATCH v2 6/6] arm/mpu: Implement remove_early_mappings... Hari Limaye
- Re: [PATCH v2 6/6] arm/mpu: Implement remove_early_... Orzel, Michal
- [PATCH v2 3/6] arm/mpu: Populate a new region in Xen MP... Hari Limaye
- Re: [PATCH v2 3/6] arm/mpu: Populate a new region i... Orzel, Michal
- Re: [PATCH v2 3/6] arm/mpu: Populate a new regi... Hari Limaye
- Re: [PATCH v2 3/6] arm/mpu: Populate a new ... Orzel, Michal