]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86/pmu: Drop redundant check on PMC being globally enabled for emulation
authorSean Christopherson <seanjc@google.com>
Tue, 5 Aug 2025 19:05:22 +0000 (12:05 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:40 +0000 (11:59 -0700)
commit58baa649ea09e7b719d0ef51aba894d63c2bb64f
tree364e42b1ed73950805fbacd36553a7132ab710f9
parente630bb52d27f4191324d3443ecb2b115d7fb14b2
KVM: x86/pmu: Drop redundant check on PMC being globally enabled for emulation

When triggering PMC events in response to emulation, drop the redundant
checks on a PMC being globally and locally enabled, as the passed in bitmap
contains only PMCs that are locally enabled (and counting the right event),
and the local copy of the bitmap has already been masked with global_ctrl.

No true functional change intended.

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