]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfio: pass an opaque pointer on virqfd initialization
authorAntonios Motakis <a.motakis@virtualopensystems.com>
Mon, 16 Mar 2015 20:08:53 +0000 (14:08 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 16 Mar 2015 20:08:53 +0000 (14:08 -0600)
commit09bbcb8810c4673cb96477e0e83c9bcdfadc7741
tree73ad0b7630c6287f949b803089fb162973c8c13e
parent9269c393e7a971f98c0f54d7fc350ac7636d1fa5
vfio: pass an opaque pointer on virqfd initialization

VFIO_PCI passes the VFIO device structure *vdev via eventfd to the handler
that implements masking/unmasking of IRQs via an eventfd. We can replace
it in the virqfd infrastructure with an opaque type so we can make use
of the mechanism from other VFIO bus drivers.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Reviewed-by: Eric Auger <eric.auger@linaro.org>
Tested-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_intrs.c