On Tue, Jul 25, 2023 at 03:05:55PM +0200, Roger Pau Monne wrote:
> diff --git a/tools/libs/light/libxl_cpuid.c b/tools/libs/light/libxl_cpuid.c
> index 3c8b2a72c0b8..dd97699bbde7 100644
> --- a/tools/libs/light/libxl_cpuid.c
> +++ b/tools/libs/light/libxl_cpuid.c
> @@ -592,17 +641,32 @@ int libxl__cpuid_policy_list_parse_json(libxl__gc *gc,
> {
> int i, size;
> struct xc_xend_cpuid *l;
> + struct xc_msr *msr;
> + const libxl__json_object *co;
> flexarray_t *array;
> + bool cpuid_only = false;
> +
> + if (libxl__json_object_is_array(o)) {
I think a comment here would useful to point out that we are parsing the
format from previous version of Xen.
> + co = o;
> + cpuid_only = true;
> + goto parse_cpuid;
> + }
Otherwise, the patch looks good now:
Reviewed-by: Anthony PERARD <[email protected]>
Thanks,
--
Anthony PERARD