vfio-pci: Enable device request notification support
commit47cbe50cc8d8e59129311bcdb827e1116e935bde
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Mar 2015 18:38:55 +0000 (2 11:38 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Mar 2015 18:38:55 +0000 (2 11:38 -0700)
tree2dc6dc9ec1da1a4f00b5ff7b4e085cef3e2c10d0
parent6ee47c90081b3ab5980eeef1a8b12b54bac98bb5
vfio-pci: Enable device request notification support

Linux v4.0-rc1 vfio-pci introduced a new virtual interrupt to allow
the kernel to request a device from the user.  When signaled, QEMU
will by default attmempt to hot-unplug the device.  This is a one-
shot attempt with the expectation that the kernel will continue to
poll for the device if it is not returned.  Returning the device when
requested is the expected standard model of cooperative usage, but we
also add an option option to disable this feature.  Initially this
opt-out is set as an experimental option because we really should
honor kernel requests for the device.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c
linux-headers/linux/vfio.h