]>
libxc/PM: Retry get_pxstat if data is incomplete
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 11 Jun 2025 09:07:00 +0000 (11:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Jun 2025 09:07:00 +0000 (11:07 +0200)
commit1ff7f87e8f4ffff97901126927549ae7b7a7340d
tree644019593b06569c5647b510e8e9f2f15877668e
parentde6a05a8a0d5090f1cdb9b5449b034afcbe7a208
libxc/PM: Retry get_pxstat if data is incomplete

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 <ross.lagerwall@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
tools/misc/xenpm.c