]> Gentwo Git Trees - linux/.git/commit
KVM: x86/pmu: Rename pmc_speculative_in_use() to pmc_is_locally_enabled()
authorSean Christopherson <seanjc@google.com>
Tue, 5 Aug 2025 19:05:20 +0000 (12:05 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:39 +0000 (11:59 -0700)
commit6b6f1adc43320494197ddbefbe933faea21e2d10
treeed22180324c4960f2bc851d444fd684956a27601
parent5dfd498bad5f07b7419b5f834d95f7b61e767048
KVM: x86/pmu: Rename pmc_speculative_in_use() to pmc_is_locally_enabled()

Rename pmc_speculative_in_use() to pmc_is_locally_enabled() to better
capture what it actually tracks, and to show its relationship to
pmc_is_globally_enabled().  While neither AMD nor Intel refer to event
selectors or the fixed counter control MSR as "local", it's the obvious
name to pair with "global".

As for "speculative", there's absolutely nothing speculative about the
checks.  E.g. for PMUs without PERF_GLOBAL_CTRL, from the guest's
perspective, the counters are "in use" without any qualifications.

No functional change intended.

Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20250805190526.1453366-13-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h
arch/x86/kvm/vmx/pmu_intel.c