]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: arm64, x86: make kvm_arch_has_irq_bypass() inline
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Apr 2025 17:03:08 +0000 (13:03 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Apr 2025 13:46:58 +0000 (09:46 -0400)
commit5f9e1698141a724ef63f75ee22fa9007d97de5bb
treecf484b2b5b407db733bf2f493968b7972c661dd2
parent8ffd015db85fea3e15a77027fda6c02ced4d2444
KVM: arm64, x86: make kvm_arch_has_irq_bypass() inline

kvm_arch_has_irq_bypass() is a small function and even though it does
not appear in any *really* hot paths, it's also not entirely rare.
Make it inline---it also works out nicely in preparation for using it in
kvm-intel.ko and kvm-amd.ko, since the function is not currently exported.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c