Re: [PATCH 2/2] xen/heap: pass order to free_heap_pages() in heap init

2022-07-15 Thread Julien Grall
Hi Jan, On 09/06/2022 14:22, Jan Beulich wrote: /* * This function should only be called with valid pages from the same NUMA - * node. + * node and the same zone. * * Callers should use is_contig_page() first to check if all the pages * in a range are contiguous. @@ -1817,8 +1829,2

Re: [PATCH 2/2] xen/heap: pass order to free_heap_pages() in heap init

2022-07-01 Thread Julien Grall
On 28/06/2022 15:40, Bertrand Marquis wrote: Hi Julien, Hi Bertrand, On 9 Jun 2022, at 09:30, Julien Grall wrote: From: Hongyan Xia The idea is to split the range into multiple aligned power-of-2 regions which only needs to call free_heap_pages() once each. We check the least significa

Re: [PATCH 2/2] xen/heap: pass order to free_heap_pages() in heap init

2022-06-28 Thread Bertrand Marquis
Hi Julien, > On 9 Jun 2022, at 09:30, Julien Grall wrote: > > From: Hongyan Xia > > The idea is to split the range into multiple aligned power-of-2 regions > which only needs to call free_heap_pages() once each. We check the least > significant set bit of the start address and use its bit inde

Re: [PATCH 2/2] xen/heap: pass order to free_heap_pages() in heap init

2022-06-09 Thread Jan Beulich
On 09.06.2022 10:30, Julien Grall wrote: > From: Hongyan Xia > > The idea is to split the range into multiple aligned power-of-2 regions > which only needs to call free_heap_pages() once each. We check the least > significant set bit of the start address and use its bit index as the > order of th

[PATCH 2/2] xen/heap: pass order to free_heap_pages() in heap init

2022-06-09 Thread Julien Grall
From: Hongyan Xia The idea is to split the range into multiple aligned power-of-2 regions which only needs to call free_heap_pages() once each. We check the least significant set bit of the start address and use its bit index as the order of this increment. This makes sure that each increment is