History

vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls

Realize VFIO_DEVICE_GET_IRQ_INFO ioctl to retrieve VFIO_CCW_IO_IRQ information. Realize VFIO_DEVICE_SET_IRQS ioctl to set an eventfd fd for VFIO_CCW_IO_IRQ. Once a write operation to the ccw_io_region was performed, trigger a signal on this fd.

Dong Jia Shi committed 9 years ago

Commit 120e2141 parent 83d11933 files · +134 −3Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/vfio.h+8−2
@@ -449,8 +449,9 @@ enum { · 448 unmodified lines
449449 };
450450
451451 /*
452− * The vfio-ccw bus driver makes use of the following fixed region.
453− * Unimplemented regions return a size of zero.
452+ * The vfio-ccw bus driver makes use of the following fixed region and
453+ * IRQ index mapping. Unimplemented regions return a size of zero.
454+ * Unimplemented IRQ types return a count of zero.
454455 */
455456
456457 enum {
@@ -458,6 +459,11 @@ enum { · 1 unmodified line
458459 VFIO_CCW_NUM_REGIONS
459460 };
460461
462+enum {
463+ VFIO_CCW_IO_IRQ_INDEX,
464+ VFIO_CCW_NUM_IRQS
465+};
466+
461467 /**
462468 * VFIO_DEVICE_GET_PCI_HOT_RESET_INFO - _IORW(VFIO_TYPE, VFIO_BASE + 12,
463469 * struct vfio_pci_hot_reset_info)