summaryrefslogtreecommitdiffstats
path: root/linux-headers
diff options
context:
space:
mode:
authorAlex Williamson2015-03-02 19:38:55 +0100
committerAlex Williamson2015-03-02 19:38:55 +0100
commit47cbe50cc8d8e59129311bcdb827e1116e935bde (patch)
tree2dc6dc9ec1da1a4f00b5ff7b4e085cef3e2c10d0 /linux-headers
parentvfio: allow to disable MMAP per device with -x-mmap=off option (diff)
downloadqemu-47cbe50cc8d8e59129311bcdb827e1116e935bde.tar.gz
qemu-47cbe50cc8d8e59129311bcdb827e1116e935bde.tar.xz
qemu-47cbe50cc8d8e59129311bcdb827e1116e935bde.zip
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>
Diffstat (limited to 'linux-headers')
-rw-r--r--linux-headers/linux/vfio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index 0f21aa6266..95ba870302 100644
--- a/linux-headers/linux/vfio.h
+++ b/linux-headers/linux/vfio.h
@@ -333,6 +333,7 @@ enum {
VFIO_PCI_MSI_IRQ_INDEX,
VFIO_PCI_MSIX_IRQ_INDEX,
VFIO_PCI_ERR_IRQ_INDEX,
+ VFIO_PCI_REQ_IRQ_INDEX,
VFIO_PCI_NUM_IRQS
};