KVM: VMX: Stop walking list of routing table entries when updating IRTE
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:27 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:26 +0000 (09:50 -0700)
commit23ca102e6fb284f3c1d08d8bbbddceff2353427f
tree3878f7f898eaafc62042ce3c1b6cb43ef7e07cd6
parent1e663ed239923447a0217d78a96bcdc8729022e0
KVM: VMX: Stop walking list of routing table entries when updating IRTE

Now that KVM provides the to-be-updated routing entry, stop walking the
routing table to find that entry.  KVM, via setup_routing_entry() and
sanity checked by kvm_get_msi_route(), disallows having a GSI configured
to trigger multiple MSIs, i.e. the for-loop can only process one entry.

Link: https://lore.kernel.org/r/20250611224604.313496-26-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/posted_intr.c