]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3cd16696685808790725f502c4ae2b2ac511cc77
tree05a37b7789c293765417f1816c1f0b74e5db18d4
parentcfd780b566944d367198e80ff047955ada6a7f48
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