Introduce device information about vfio-ccw: VFIO_DEVICE_FLAGS_CCW. Realize VFIO_DEVICE_GET_REGION_INFO ioctl for vfio-ccw.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -198,6 +198,7 @@ struct vfio_device_info { · 197 unmodified lines | ||
| 198 | 198 | #define VFIO_DEVICE_FLAGS_PCI (1 << 1) /* vfio-pci device */ |
| 199 | 199 | #define VFIO_DEVICE_FLAGS_PLATFORM (1 << 2) /* vfio-platform device */ |
| 200 | 200 | #define VFIO_DEVICE_FLAGS_AMBA (1 << 3) /* vfio-amba device */ |
| 201 | +#define VFIO_DEVICE_FLAGS_CCW (1 << 4) /* vfio-ccw device */ | |
| 201 | 202 | __u32 num_regions; /* Max region index + 1 */ |
| 202 | 203 | __u32 num_irqs; /* Max IRQ index + 1 */ |
| 203 | 204 | }; |
| @@ -447,6 +448,16 @@ enum { · 243 unmodified lines | ||
| 447 | 448 | VFIO_PCI_NUM_IRQS |
| 448 | 449 | }; |
| 449 | 450 | |
| 451 | +/* | |
| 452 | + * The vfio-ccw bus driver makes use of the following fixed region. | |
| 453 | + * Unimplemented regions return a size of zero. | |
| 454 | + */ | |
| 455 | + | |
| 456 | +enum { | |
| 457 | + VFIO_CCW_CONFIG_REGION_INDEX, | |
| 458 | + VFIO_CCW_NUM_REGIONS | |
| 459 | +}; | |
| 460 | + | |
| 450 | 461 | /** |
| 451 | 462 | * VFIO_DEVICE_GET_PCI_HOT_RESET_INFO - _IORW(VFIO_TYPE, VFIO_BASE + 12, |
| 452 | 463 | * struct vfio_pci_hot_reset_info) |