Re: [PATCH] powerpc/xive: Fix some incorrect memory allocation

2022-06-25 Thread Cédric Le Goater
Hello Christophe, On 6/25/22 11:49, Christophe JAILLET wrote: 'xibm->count' really looks like a number of bits (see how it is used in __xive_irq_bitmap_alloc()), so use the bitmap API to allocate and free this bitmap. This improves semantic and potentially avoids some over memory allocation.

[PATCH] powerpc/xive: Fix some incorrect memory allocation

2022-06-25 Thread Christophe JAILLET
'xibm->count' really looks like a number of bits (see how it is used in __xive_irq_bitmap_alloc()), so use the bitmap API to allocate and free this bitmap. This improves semantic and potentially avoids some over memory allocation. Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE