]> xenbits.xensource.com Git - xen.git/commit
libxl: add support for parsing MSR features
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 25 Jul 2023 13:05:58 +0000 (15:05 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 3 Aug 2023 18:14:19 +0000 (19:14 +0100)
commitf1652ccc9093d50c20a74ac5765feecc9724d9a9
treeb547a2856ad2c624a10ccfa806db4708551d8800
parent1299ea8d766d15edd130248e3a76770f1ca2a7f2
libxl: add support for parsing MSR features

Introduce support for handling MSR features in
libxl_cpuid_parse_config().  The MSR policies are added to the
libxl_cpuid_policy like the CPUID one, which gets passed to
xc_cpuid_apply_policy().

This allows existing users of libxl to provide MSR related features as
key=value pairs to libxl_cpuid_parse_config() without requiring the
usage of a different API.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
(cherry picked from commit 6d21cedbaa34b3a3856f964189e911112c732b21)
tools/libxl/libxl_cpuid.c