summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorLike Xu <likexu@tencent.com>2022-05-18 19:01:18 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-08 19:06:15 +0200
commitd7808f739162c003d249168bfe4c571aba18fb8a (patch)
tree985ece12fd30a17b4c68a8ca45d5b34f4414bcb6 /Kbuild
parentx86: events: Do not return bogus capabilities if PMU is broken (diff)
downloadlinux-d7808f739162c003d249168bfe4c571aba18fb8a.tar.xz
linux-d7808f739162c003d249168bfe4c571aba18fb8a.zip
KVM: x86/pmu: Update global enable_pmu when PMU is undetected
On some virt platforms (L1 guest w/o PMU), the value of module parameter 'enable_pmu' for nested L2 guests should be updated at initialisation. Considering that there is no concept of "architecture pmu" in AMD or Hygon and that the versions (prior to Zen 4) are all 0, but that the theoretical available counters are at least AMD64_NUM_COUNTERS, the utility check_hw_exists() is reused in the initialisation call path. Opportunistically update Intel specific comments. Fixes: 8eeac7e999e8 ("KVM: x86/pmu: Add kvm_pmu_cap to optimize perf_get_x86_pmu_capability") Signed-off-by: Like Xu <likexu@tencent.com> Message-Id: <20220518170118.66263-3-likexu@tencent.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions