]> 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>
Tue, 8 Aug 2023 15:02:17 +0000 (16:02 +0100)
commit8df6cec384b4f5d128a8d21af30cf1330e81e8a2
tree87338e196b39ed1ea999891cc75bac52e0c6a7d3
parent7374a8d7700f5cf0614205f3b6e9c0352861c1da
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/libs/light/libxl_cpuid.c