libs/guest: allow updating a cpu policy CPUID data
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 17 Mar 2021 15:49:55 +0000 (16:49 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 May 2021 17:35:53 +0000 (18:35 +0100)
commit2d09c97e58ea455242a3862c16e732592841ddde
tree89cae40ea066e71272e20de7ad458fd416621153
parent34990446ca91d9e201ff17bd4e3f43bfe3ad308e
libs/guest: allow updating a cpu policy CPUID data

Introduce a helper to update the CPUID policy using an array of
xen_cpuid_leaf_t entries. Note the leaves present in the input
xen_cpuid_leaf_t array will replace any existing leaves on the policy.

No user of the interface introduced on this patch.

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