]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/pmu: Ignore pmu->global_ctrl check if vPMU doesn't support global_ctrl
authorLike Xu <likexu@tencent.com>
Mon, 9 May 2022 10:22:02 +0000 (18:22 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:35 +0000 (04:48 -0400)
commit4e83d1d616f7b8eca0441569e4af13bb96e07c94
tree9698ea3f567700cfefb86447075abe3a6f2aa9f1
parentc43ba9a7b7aa159ec1a72d5a4790c372c104b1ea
KVM: x86/pmu: Ignore pmu->global_ctrl check if vPMU doesn't support global_ctrl

MSR_CORE_PERF_GLOBAL_CTRL is introduced as part of Architecture PMU V2,
as indicated by Intel SDM 19.2.2 and the intel_is_valid_msr() function.

So in the absence of global_ctrl support, all PMCs are enabled as AMD does.

Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220509102204.62389-1-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/pmu_intel.c