]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
irqbypass: Use paired consumer/producer to disconnect during unregister
authorSean Christopherson <seanjc@google.com>
Fri, 16 May 2025 23:07:31 +0000 (16:07 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:52:39 +0000 (13:52 -0700)
commit5d7dbdce388b43cf3a9bc50c4132493de26aeba4
treecf4356305c6e1857dd67a80f090ed5dda5400d65
parentadd57f493e0893ac0fb4acbdc441918d3e800f10
irqbypass: Use paired consumer/producer to disconnect during unregister

Use the paired consumer/producer information to disconnect IRQ bypass
producers/consumers in O(1) time (ignoring the cost of __disconnect()).

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20250516230734.2564775-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
virt/lib/irqbypass.c