libs/guest: move cpu policy related prototypes to xenguest.h
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 19 Jan 2022 12:51:26 +0000 (13:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 19 Jan 2022 12:51:26 +0000 (13:51 +0100)
commit2fc98a9587704b3cdedfe3ae2a6104e7d9e251bd
tree7dc4ac0202e6014dc7c5af84ac1ed6730c7394d5
parentd4fb2cc5c0eea6873e4ffb0eeea6ea1d6023b654
libs/guest: move cpu policy related prototypes to xenguest.h

Do this before adding any more stuff to xg_cpuid_x86.c.

The placement in xenctrl.h is wrong, as they are implemented by the
xenguest library. Note that xg_cpuid_x86.c needs to include
xg_private.h, and in turn also fix xg_private.h to include
xc_bitops.h. The bitops definition of BITS_PER_LONG needs to be
changed to not be an expression, so that xxhash.h can use it in a
preprocessor if directive.

As a result also modify xen-cpuid to include xenguest.h.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/include/xenctrl.h
tools/include/xenguest.h
tools/libs/ctrl/xc_bitops.h
tools/libs/guest/xg_cpuid_x86.c
tools/libs/guest/xg_private.h
tools/misc/xen-cpuid.c