Re: [PATCH v3 1/6] arm/mpu: Find MPU region by range

2025-07-15 Thread Orzel, Michal
On 15/07/2025 11:48, Hari Limaye wrote: > Hi Michal, > >> On 15 Jul 2025, at 09:45, Orzel, Michal wrote: >> >> >> >> On 15/07/2025 10:36, Hari Limaye wrote: >>> Hi Michal, >>> > +int mpumap_contains_region(pr_t *table, uint8_t nr_regions, paddr_t base, > + pad

Re: [PATCH v3 1/6] arm/mpu: Find MPU region by range

2025-07-15 Thread Hari Limaye
Hi Michal, > On 15 Jul 2025, at 09:45, Orzel, Michal wrote: > > > > On 15/07/2025 10:36, Hari Limaye wrote: >> Hi Michal, >> +int mpumap_contains_region(pr_t *table, uint8_t nr_regions, paddr_t base, + paddr_t limit, uint8_t *index) +{ +ASSERT

Re: [PATCH v3 1/6] arm/mpu: Find MPU region by range

2025-07-15 Thread Orzel, Michal
On 15/07/2025 10:36, Hari Limaye wrote: > Hi Michal, > >>> +int mpumap_contains_region(pr_t *table, uint8_t nr_regions, paddr_t base, >>> + paddr_t limit, uint8_t *index) >>> +{ >>> +ASSERT(index); >>> +*index = INVALID_REGION_IDX; >>> + >>> +/* >>> + *

Re: [PATCH v3 1/6] arm/mpu: Find MPU region by range

2025-07-15 Thread Hari Limaye
Hi Michal, >> +int mpumap_contains_region(pr_t *table, uint8_t nr_regions, paddr_t base, >> + paddr_t limit, uint8_t *index) >> +{ >> +ASSERT(index); >> +*index = INVALID_REGION_IDX; >> + >> +/* >> + * The caller supplies a half-open interval [base, limit)

Re: [PATCH v3 1/6] arm/mpu: Find MPU region by range

2025-07-15 Thread Orzel, Michal
On 15/07/2025 09:45, Hari Limaye wrote: > From: Luca Fancellu > > Implement a function to find the index of a MPU region in the xen_mpumap > MPU region array. This function will be used in future commits to > implement creating and destroying MPU regions. > > Signed-off-by: Luca Fancellu > S

[PATCH v3 1/6] arm/mpu: Find MPU region by range

2025-07-15 Thread Hari Limaye
From: Luca Fancellu Implement a function to find the index of a MPU region in the xen_mpumap MPU region array. This function will be used in future commits to implement creating and destroying MPU regions. Signed-off-by: Luca Fancellu Signed-off-by: Hari Limaye --- Changes from v1: - Update co