Re: [PATCH 06/11] xen/arm: Avoid code duplication in find_unallocated_memory

2024-03-21 Thread Michal Orzel
Hi Luca, On 20/03/2024 15:53, Luca Fancellu wrote: > > >> On 20 Mar 2024, at 10:57, Michal Orzel wrote: >> >> Hi Luca, >> >> On 12/03/2024 14:03, Luca Fancellu wrote: >>> >>> >>> The function find_unallocated_memory is using the same code to >>> loop through 3 structure of the same type, in

Re: [PATCH 06/11] xen/arm: Avoid code duplication in find_unallocated_memory

2024-03-20 Thread Luca Fancellu
> On 20 Mar 2024, at 10:57, Michal Orzel wrote: > > Hi Luca, > > On 12/03/2024 14:03, Luca Fancellu wrote: >> >> >> The function find_unallocated_memory is using the same code to >> loop through 3 structure of the same type, in order to avoid >> code duplication, rework the code to have

Re: [PATCH 06/11] xen/arm: Avoid code duplication in find_unallocated_memory

2024-03-20 Thread Michal Orzel
Hi Luca, On 12/03/2024 14:03, Luca Fancellu wrote: > > > The function find_unallocated_memory is using the same code to > loop through 3 structure of the same type, in order to avoid > code duplication, rework the code to have only one loop that > goes through all the structures. > >

[PATCH 06/11] xen/arm: Avoid code duplication in find_unallocated_memory

2024-03-12 Thread Luca Fancellu
The function find_unallocated_memory is using the same code to loop through 3 structure of the same type, in order to avoid code duplication, rework the code to have only one loop that goes through all the structures. Signed-off-by: Luca Fancellu --- xen/arch/arm/domain_build.c | 62