]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/pmu: Drop "u64 eventsel" for reprogram_gp_counter()
authorLike Xu <likexu@tencent.com>
Wed, 18 May 2022 13:25:06 +0000 (21:25 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:50 +0000 (04:48 -0400)
commita037e678240f6758b1b1dde43b7ee2ca8a179f5a
tree4086601f5a9e527820fe9306432c950e21c36672
parent5d73f7deca8cbff559f0689db82bb5f2d29de77a
KVM: x86/pmu: Drop "u64 eventsel" for reprogram_gp_counter()

Because inside reprogram_gp_counter() it is bound to assign the requested
eventel to pmc->eventsel, this assignment step can be moved forward, thus
simplifying the passing of parameters to "struct kvm_pmc *pmc" only.

No functional change intended.

Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220518132512.37864-6-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