KVM: x86/pmu: Use only the uniform interface reprogram_counter()
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 May 2022 09:28:56 +0000 (05:28 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:55 +0000 (04:48 -0400)
commite99fae6edebcdf53658f531ee3c913ca74536355
tree05a37b7789c293765417f1816c1f0b74e5db18d4
parent76d287b2342e1906e399fd19d6500013aa074a50
KVM: x86/pmu: Use only the uniform interface reprogram_counter()

Since reprogram_counter(), reprogram_{gp, fixed}_counter() currently have
the same incoming parameter "struct kvm_pmc *pmc", the callers can simplify
the conetxt by using uniformly exported interface, which makes reprogram_
{gp, fixed}_counter() static and eliminates EXPORT_SYMBOL_GPL.

Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220518132512.37864-8-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h
arch/x86/kvm/svm/pmu.c
arch/x86/kvm/vmx/pmu_intel.c