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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -449,8 +449,9 @@ enum { · 448 unmodified lines | |||
| 449 | }; | 449 | }; |
| 450 | 450 | ||
| 451 | /* | 451 | /* |
| 452 | * The vfio-ccw bus driver makes use of the following fixed region. | 452 | * The vfio-ccw bus driver makes use of the following fixed region and |
| 453 | * Unimplemented regions return a size of zero. | 453 | * IRQ index mapping. Unimplemented regions return a size of zero. |
| 454 | * Unimplemented IRQ types return a count of zero. | ||
| 454 | */ | 455 | */ |
| 455 | 456 | ||
| 456 | enum { | 457 | enum { |
| @@ -458,6 +459,11 @@ enum { · 1 unmodified line | |||
| 458 | VFIO_CCW_NUM_REGIONS | 459 | VFIO_CCW_NUM_REGIONS |
| 459 | }; | 460 | }; |
| 460 | 461 | ||
| 462 | enum { | ||
| 463 | VFIO_CCW_IO_IRQ_INDEX, | ||
| 464 | VFIO_CCW_NUM_IRQS | ||
| 465 | }; | ||
| 466 | |||
| 461 | /** | 467 | /** |
| 462 | * VFIO_DEVICE_GET_PCI_HOT_RESET_INFO - _IORW(VFIO_TYPE, VFIO_BASE + 12, | 468 | * VFIO_DEVICE_GET_PCI_HOT_RESET_INFO - _IORW(VFIO_TYPE, VFIO_BASE + 12, |
| 463 | * struct vfio_pci_hot_reset_info) | 469 | * struct vfio_pci_hot_reset_info) |