libs/guest: introduce helper to fetch a system cpu policy
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 17 Mar 2021 13:45:41 +0000 (14:45 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 29 Apr 2021 18:27:21 +0000 (19:27 +0100)
commita877e31f9d6e6cb435c10e9c539b02bd451969a9
tree4be04e883b8aae15d520aa01dd748974607204d8
parent989ec5bd1d790ef53db2cf0f12244d10b07bfa3a
libs/guest: introduce helper to fetch a system cpu policy

Such helper is based on the existing functions to fetch a CPUID and
MSR policies, but uses the xc_cpu_policy_t type to return the data to
the caller.

Note some helper functions are introduced, those are split from
xc_cpu_policy_get_system because they will be used by other functions
also.

No user of the interface introduced on the patch.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/include/xenctrl.h
tools/libs/guest/xg_cpuid_x86.c