libs/guest: introduce helper to serialize a cpu policy
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 17 Mar 2021 14:31:50 +0000 (15:31 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 29 Apr 2021 18:27:21 +0000 (19:27 +0100)
commitde75c946cfd3d65b4511c970f14e331a54544b12
treeac7b0b025382c5125207ee39596a4d04ad3051e4
parentc79d253226de3466cbc41401014d9a35507bff33
libs/guest: introduce helper to serialize a cpu policy

Such helper allow converting a cpu policy into an array of
xen_cpuid_leaf_t and xen_msr_entry_t elements, which matches the
current interface of the CPUID/MSR functions. This is required in
order for the user to be able to parse the CPUID/MSR data.

No user of the interface introduced in this patch.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
tools/include/xenctrl.h
tools/libs/guest/xg_cpuid_x86.c