KVM: x86: Move IRQ routing/delivery APIs from x86.c => irq.c
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:29 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:28 +0000 (09:50 -0700)
commitf5369619f7f8add44fc5e3d05364d2ed293995fa
tree29e5a207d6e70db0dd602c0672a221d67b379014
parent0a64c447f6f81f79b69294c16b28680be59a3649
KVM: x86: Move IRQ routing/delivery APIs from x86.c => irq.c

Move a bunch of IRQ routing and delivery APIs from x86.c to irq.c.  x86.c
has grown quite fat, and irq.c is the perfect landing spot.

Opportunistically rewrite kvm_arch_irq_bypass_del_producer()'s comment, as
the existing comment has several typos and is rather confusing.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20250611224604.313496-28-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/irq.c
arch/x86/kvm/x86.c