summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/vfio.h
diff options
context:
space:
mode:
authorVijay Mohan Pandarathil2013-03-11 16:31:22 +0100
committerAlex Williamson2013-03-11 16:31:22 +0100
commitdad9f8972e04cd081a028d8fb1249d746d97fc03 (patch)
tree8f3f6bbfa41f3a60853007e33846d6fac2b139ea /include/uapi/linux/vfio.h
parentVFIO: Wrapper for getting reference to vfio_device (diff)
downloadkernel-qcow2-linux-dad9f8972e04cd081a028d8fb1249d746d97fc03.tar.gz
kernel-qcow2-linux-dad9f8972e04cd081a028d8fb1249d746d97fc03.tar.xz
kernel-qcow2-linux-dad9f8972e04cd081a028d8fb1249d746d97fc03.zip
VFIO-AER: Vfio-pci driver changes for supporting AER
- New VFIO_SET_IRQ ioctl option to pass the eventfd that is signaled when an error occurs in the vfio_pci_device - Register pci_error_handler for the vfio_pci driver - When the device encounters an error, the error handler registered by the vfio_pci driver gets invoked by the AER infrastructure - In the error handler, signal the eventfd registered for the device. - This results in the qemu eventfd handler getting invoked and appropriate action taken for the guest. Signed-off-by: Vijay Mohan Pandarathil <vijaymohan.pandarathil@hp.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/uapi/linux/vfio.h')
-rw-r--r--include/uapi/linux/vfio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h
index 4f41f309911e..284ff2436829 100644
--- a/include/uapi/linux/vfio.h
+++ b/include/uapi/linux/vfio.h
@@ -319,6 +319,7 @@ enum {
VFIO_PCI_INTX_IRQ_INDEX,
VFIO_PCI_MSI_IRQ_INDEX,
VFIO_PCI_MSIX_IRQ_INDEX,
+ VFIO_PCI_ERR_IRQ_INDEX,
VFIO_PCI_NUM_IRQS
};