]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: Allow building irqbypass.ko as as module when kvm.ko is a module
authorSean Christopherson <seanjc@google.com>
Sat, 15 Mar 2025 02:46:23 +0000 (19:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:54 +0000 (10:15 +0200)
commitfae0a8796c4f5d31500959753e87953238eccd95
treeb35c1fbfa69dc96d0f79cc671eb62cbd0757e3fc
parent3bc2208c749cd8ac2315482cf5cdc722a168c742
KVM: Allow building irqbypass.ko as as module when kvm.ko is a module

commit 459a35111b0a890172a78d51c01b204e13a34a18 upstream.

Convert HAVE_KVM_IRQ_BYPASS into a tristate so that selecting
IRQ_BYPASS_MANAGER follows KVM={m,y}, i.e. doesn't force irqbypass.ko to
be built-in.

Note, PPC allows building KVM as a module, but selects HAVE_KVM_IRQ_BYPASS
from a boolean Kconfig, i.e. KVM PPC unnecessarily forces irqbpass.ko to
be built-in.  But that flaw is a longstanding PPC specific issue.

Fixes: 61df71ee992d ("kvm: move "select IRQ_BYPASS_MANAGER" to common code")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250315024623.2363994-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/kvm_host.h
virt/kvm/Kconfig
virt/kvm/eventfd.c