Re: [PATCH v2 5/5] libxc/PM: Retry get_pxstat if data is incomplete

2025-05-26 Thread Anthony PERARD
On Mon, May 12, 2025 at 03:46:56PM +0100, Ross Lagerwall wrote: > If the total returned by Xen is more than the number of elements > allocated, it means that the buffer was too small and so the data is > incomplete. Retry to get all the data. > > Signed-off-by: Ross Lagerwall Reviewed-by: Anthon

[PATCH v2 5/5] libxc/PM: Retry get_pxstat if data is incomplete

2025-05-12 Thread Ross Lagerwall
If the total returned by Xen is more than the number of elements allocated, it means that the buffer was too small and so the data is incomplete. Retry to get all the data. Signed-off-by: Ross Lagerwall --- * New in v2. tools/misc/xenpm.c | 49 +- 1