summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/pmu.h
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-09-23 02:13:53 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-11-09 18:31:35 +0100
commitdcbb816a2842e41d3ec22605c6760837d800b20a (patch)
treeb3233d3dab2e0005c0705fe36d8ba082f5909771 /arch/x86/kvm/pmu.h
parentKVM: x86/pmu: Force reprogramming of all counters on PMU filter change (diff)
downloadlinux-dcbb816a2842e41d3ec22605c6760837d800b20a.tar.xz
linux-dcbb816a2842e41d3ec22605c6760837d800b20a.zip
KVM: x86/pmu: Clear "reprogram" bit if counter is disabled or disallowed
When reprogramming a counter, clear the counter's "reprogram pending" bit if the counter is disabled (by the guest) or is disallowed (by the userspace filter). In both cases, there's no need to re-attempt programming on the next coincident KVM_REQ_PMU as enabling the counter by either method will trigger reprogramming. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20220923001355.3741194-3-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/pmu.h')
0 files changed, 0 insertions, 0 deletions