vfio/pci: Pass eventfd context to IRQ handler
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Apr 2024 19:54:02 +0000 (13:54 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Apr 2024 22:50:14 +0000 (16:50 -0600)
commit071e7310e69368de551388088827c57df05f59aa
treea157545259ac9ccc41bd5aedfd7cc95a063dad96
parentaf6605f87ca585f426272e4a5096771ae273f30f
vfio/pci: Pass eventfd context to IRQ handler

Create a link back to the vfio_pci_core_device on the eventfd context
object to avoid lookups in the interrupt path.  The context is known
valid in the interrupt handler.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240401195406.3720453-2-alex.williamson@redhat.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_intrs.c