KVM: x86/pmu: Move reprogram_counters() to pmu.h
authorLike Xu <likexu@tencent.com>
Sat, 3 Jun 2023 01:10:48 +0000 (18:10 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 7 Jun 2023 00:31:44 +0000 (17:31 -0700)
commit8de18543dfe34a6aac9deefb0256db2609cfa351
tree02632905e07bf6bbdde4f3d4fcce7b6529d6bec8
parent53550b89220beda42934a76a61313ecf308b2b03
KVM: x86/pmu: Move reprogram_counters() to pmu.h

Move reprogram_counters() out of Intel specific PMU code and into pmu.h so
that it can be used to implement AMD PMU v2 support.

No functional change intended.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Like Xu <likexu@tencent.com>
[sean: rewrite changelog]
Link: https://lore.kernel.org/r/20230603011058.1038821-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/pmu.h
arch/x86/kvm/vmx/pmu_intel.c