]> 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)
commit47ac0af5dd0d532467b3b732055000cb74240ca7
tree4086601f5a9e527820fe9306432c950e21c36672
parent0a6fcc38cb7d376941f040299a56074213b1da5d
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