]> www.infradead.org Git - nvme.git/commit
KVM: x86: Introduce kvm_x86_call() to simplify static calls of kvm_x86_ops
authorWei Wang <wei.w.wang@intel.com>
Tue, 7 May 2024 13:31:02 +0000 (21:31 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jul 2024 16:14:12 +0000 (12:14 -0400)
commit896046474f8d2ea711f63576b3ff89f88e273aef
tree63d10751a4e50e7e382be5109012eba1f62d590c
parentf4854bf741c4cdb8f8cdefbf533f9b8dfd43f041
KVM: x86: Introduce kvm_x86_call() to simplify static calls of kvm_x86_ops

Introduces kvm_x86_call(), to streamline the usage of static calls of
kvm_x86_ops. The current implementation of these calls is verbose and
could lead to alignment challenges. This makes the code susceptible to
exceeding the "80 columns per single line of code" limit as defined in
the coding-style document. Another issue with the existing implementation
is that the addition of kvm_x86_ prefix to hooks at the static_call sites
hinders code readability and navigation. kvm_x86_call() is added to
improve code readability and maintainability, while adhering to the coding
style guidelines.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Link: https://lore.kernel.org/r/20240507133103.15052-3-wei.w.wang@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
16 files changed:
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/cpuid.c
arch/x86/kvm/hyperv.c
arch/x86/kvm/irq.c
arch/x86/kvm/kvm_cache_regs.h
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/pmu.c
arch/x86/kvm/smm.c
arch/x86/kvm/trace.h
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h
arch/x86/kvm/xen.c