x86/domctl: Update PV domain cpumasks when setting cpuid policy
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 27 Nov 2015 18:34:57 +0000 (18:34 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:54:43 +0000 (21:54 +0100)
commitb2507fe7decc7b967cfc188d301dcad46700cd13
treeae7353adecc4f0f47bfd04eb758f4d22d43462cd
parent9801d13d6bc4bf83ef5efdd9c68c26f164d15fff
x86/domctl: Update PV domain cpumasks when setting cpuid policy

This allows PV domains with different featuresets to observe different values
from a native cpuid instruction, on supporting hardware.

It is important to leak the host view of X2APIC, HTT and CMP_LEGACY through to
guests, even though they could be hidden.  These flags affect how to interpret
other cpuid leaves which are not maskable.

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