]> www.infradead.org Git - nvme.git/commit
KVM: x86/pmu: Add kvm_pmu_call() to simplify static calls of kvm_pmu_ops
authorWei Wang <wei.w.wang@intel.com>
Tue, 7 May 2024 13:31:03 +0000 (21:31 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jul 2024 16:14:12 +0000 (12:14 -0400)
commit5d766508fd15d7e8c90574ef270f0c163b750b45
tree362b5772908a9382edd59286e990c25287aefad3
parent896046474f8d2ea711f63576b3ff89f88e273aef
KVM: x86/pmu: Add kvm_pmu_call() to simplify static calls of kvm_pmu_ops

Similar to kvm_x86_call(), kvm_pmu_call() is added to streamline the usage
of static calls of kvm_pmu_ops, which improves code readability.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Link: https://lore.kernel.org/r/20240507133103.15052-4-wei.w.wang@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/pmu.c