]> xenbits.xensource.com Git - xen.git/commit
libxl: introduce MSR data in libxl_cpuid_policy
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 26 Jul 2023 07:47:53 +0000 (09:47 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Jul 2023 09:56:27 +0000 (10:56 +0100)
commit5b80cecb747b2176b9e85f6e7aa7be83416d77e1
tree9488abb8eb9196b9fc38c93b32f7f602ebf4b1e3
parent4825d19603580949144ac2ac5cb22df75c9da954
libxl: introduce MSR data in libxl_cpuid_policy

Add a new array field to libxl_cpuid_policy in order to store the MSR
policies.

Adding the MSR data in the libxl_cpuid_policy_list type is done so
that existing users can seamlessly pass MSR features as part of the
CPUID data, without requiring the introduction of a separate
domain_build_info field, and a new set of handlers functions.

Note that support for parsing the old JSON format is kept, as that's
required in order to restore domains or received migrations from
previous tool versions.  Differentiation between the old and the new
formats is done based on whether the contents of the 'cpuid' field is
an array or a map JSON object.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/light/libxl_cpuid.c
tools/libs/light/libxl_internal.h
tools/libs/light/libxl_types.idl