Re: [PATCH v2] KVM: x86/pmu: Don't retry a counter whose config was rejected
From: Sean Christopherson
Date: Fri Oct 02 2026 - 17:09:55 EST
On Sun, 20 Sep 2026 15:54:53 +0000, Luka Absandze wrote:
> kvm_pmu_handle_event() re-arms the reprogram bit for every failed
> reprogram, on the assumption that the failure is transient and a later
> refresh will succeed. That is true for contention, e.g. the -EBUSY from
> x86_reserve_hardware(), but not for a configuration the host PMU driver
> rejects outright. A rejected config can never succeed on retry, so the
> counter is reprogrammed on every PMU refresh for as long as the guest
> leaves it enabled, and every attempt fails the same way.
>
> [...]
Applied to kvm-x86 misc, thanks!
[1/1] KVM: x86/pmu: Don't retry a counter whose config was rejected
https://github.com/kvm-x86/linux/commit/1c24893fdb4d
--
https://github.com/kvm-x86/linux/tree/next