libx86: Introduce x86_cpu_policies_are_compatible()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 21 Jun 2018 14:35:50 +0000 (15:35 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 26 Sep 2019 12:40:18 +0000 (13:40 +0100)
commit588a966a572ec19253f8fb9495c8f926e07b1b87
tree8017d0c9648428a2cc6ecb2f676b5b69f43365e5
parentf00157928865c80f082d6f83c04efedfb96135bb
libx86: Introduce x86_cpu_policies_are_compatible()

This helper will eventually be the core "can a guest configured like this run
on the CPU?" logic.  For now, it is just enough of a stub to allow us to
replace the hypercall interface while retaining the previous behaviour.

It will be expanded as various other bits of CPUID handling get cleaned up.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
tools/tests/cpu-policy/Makefile
tools/tests/cpu-policy/test-cpu-policy.c
xen/include/xen/lib/x86/cpu-policy.h
xen/lib/x86/Makefile
xen/lib/x86/policy.c [new file with mode: 0644]