x86/vpmu: disable VPMU if guest's CPUID indicates no PMU support
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 1 Mar 2017 16:51:16 +0000 (17:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 1 Mar 2017 16:51:16 +0000 (17:51 +0100)
commite63d8abbe760fce8507549fd5e46d337beca7244
tree284fcb5cec2595e5223d387aa0127f036b1ff04d
parent4a970125d1f538431b2f0dc7802db59258f17725
x86/vpmu: disable VPMU if guest's CPUID indicates no PMU support

When toolstack overrides Intel CPUID leaf 0xa's PMU version with an
invalid value VPMU should not be available to the guest.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/cpu/vpmu_intel.c
xen/arch/x86/domctl.c
xen/include/asm-x86/cpuid.h