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

Drop the check on a PMC being locally enabled when triggering emulated
events, as the bitmap of passed-in PMCs only contains locally enabled PMCs.

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