vfio-pci: Generalize setup of simple eventfds
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 6 Feb 2015 22:05:07 +0000 (15:05 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 10 Feb 2015 19:37:57 +0000 (12:37 -0700)
commitcac80d6e382f63243ee4f31eb55afe22ed423e53
tree06c577bbff9603d8f4268fac3b5bac723761dc8a
parent13060b64b819c194909121b90b5f8dd9abb5ea4e
vfio-pci: Generalize setup of simple eventfds

We want another single vector IRQ index to support signaling of
the device request to userspace.  Generalize the error reporting
IRQ index to avoid code duplication.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_intrs.c