summaryrefslogtreecommitdiffstats
path: root/linux-headers
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2015-03-02 11:38:55 -0700
committerAlex Williamson <alex.williamson@redhat.com>2015-03-02 11:38:55 -0700
commit47cbe50cc8d8e59129311bcdb827e1116e935bde (patch)
tree2dc6dc9ec1da1a4f00b5ff7b4e085cef3e2c10d0 /linux-headers
parent6ee47c90081b3ab5980eeef1a8b12b54bac98bb5 (diff)
downloadhqemu-47cbe50cc8d8e59129311bcdb827e1116e935bde.zip
hqemu-47cbe50cc8d8e59129311bcdb827e1116e935bde.tar.gz
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 0f21aa6..95ba870 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
};
OpenPOWER on IntegriCloud