x86: calculate maximum host and guest featuresets
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:30:44 +0000 (22:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2016 20:30:44 +0000 (22:30 +0200)
commitac2628ebaa0d2c5969787debebed6b4ee2168c1d
treed36af7ceb7ef563744fbcf834f69ca5644b5a437
parent78803f9719925b572d5c0bf48cffa447356e3b91
x86: calculate maximum host and guest featuresets

All of this information will be used by the toolstack to make informed
levelling decisions for VMs, and by Xen to sanity check toolstack-provided
information.

The split between the shadow and hap HVM masks is necessary due to the lack of
a "get cpuid policy" hypercall.  Multi-host toolstacks (i.e. not libxl)
dealing with hap and non-hap capable hosts need to be able to calculate that
migrating a shadow guest is safe.

Future planned development work will implement proper cpuid policy handing in
Xen, including a "get policy" hypercall, but until then, the difference is
made available for toolstack use via a non-stable interface.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c
xen/arch/x86/setup.c
xen/include/asm-x86/cpuid.h