vfio-pci: Add device request interface
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 6 Feb 2015 22:05:08 +0000 (15:05 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 10 Feb 2015 19:38:14 +0000 (12:38 -0700)
commit6140a8f5623820cec7f56c63444b9551d8d35775
tree6493763d0a2122ca2258fc4b4b31801cd688b68f
parentcac80d6e382f63243ee4f31eb55afe22ed423e53
vfio-pci: Add device request interface

Userspace can opt to receive a device request notification,
indicating that the device should be released.  This is setup
the same way as the error IRQ and also supports eventfd signaling.
Future support may forcefully remove the device from the user if
the request is ignored.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c
drivers/vfio/pci/vfio_pci_intrs.c
drivers/vfio/pci/vfio_pci_private.h
include/uapi/linux/vfio.h