]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: WARN if IRQ bypass isn't supported in kvm_pi_update_irte()
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:53 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:44 +0000 (09:50 -0700)
commitd1bccaa1793d8f823983824635933e4bdc752b64
tree8e0353583258ae0dc4f3bc971f6fe26cd3734dac
parent04c4ca0ae47989d8f1263ffa6b77ab05d6160854
KVM: x86: WARN if IRQ bypass isn't supported in kvm_pi_update_irte()

WARN if kvm_pi_update_irte() is reached without IRQ bypass support, as the
code is only reachable if the VM already has an IRQ bypass producer (see
kvm_irq_routing_update()), or from kvm_arch_irq_bypass_{add,del}_producer(),
which, stating the obvious, are called if and only if KVM enables its IRQ
bypass hooks.

Cc: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250611224604.313496-52-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/irq.c