x86/vPMU: don't blindly assume IA32_PERF_CAPABILITIES MSR exists
authorJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2020 16:35:48 +0000 (17:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2020 16:35:48 +0000 (17:35 +0100)
commit15c39c7c913f26fba40231e103ce1ffa6101e7c9
tree2d7fd12cec2593612121e3a9f87472cdb63f05c0
parentb2426381b1a768e783cba6d6f672d979dd61913c
x86/vPMU: don't blindly assume IA32_PERF_CAPABILITIES MSR exists

Just like VMX'es lbr_tsx_fixup_check() the respective CPUID bit should
be consulted first.

Reported-by: Farrah Chen <farrah.chen@intel.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/vpmu_intel.c