vfio/pci: Split vfio_intx_update()
commitad54dbd89d7142c00669f8b6f4806c92ab468b45
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 17 Oct 2019 00:52:45 +0000 (17 11:52 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 25 Nov 2019 23:11:30 +0000 (26 10:11 +1100)
tree6a301d6e683fbc78d0089f569f5bfde9d2df8f3b
parent3607715a308d94b8c4797d23620e268a4c5bebf6
vfio/pci: Split vfio_intx_update()

This splits the vfio_intx_update() function into one part doing the actual
reconnection with the KVM irqchip (vfio_intx_update(), now taking an
argument with the new routing) and vfio_intx_routing_notifier() which
handles calls to the pci device intx routing notifier and calling
vfio_intx_update() when necessary.  This will make adding support for the
irqchip change notifier easier.

Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c