History

vfio: ccw: realize VFIO_DEVICE_GET_REGION_INFO ioctl

Introduce device information about vfio-ccw: VFIO_DEVICE_FLAGS_CCW. Realize VFIO_DEVICE_GET_REGION_INFO ioctl for vfio-ccw.

Dong Jia Shi committed 9 years ago

Commit e01bcdd1 parent 4e149e42 files · +89 −0Browse files

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

Unified · Split

include/uapi/linux/vfio.h+11−0
@@ -198,6 +198,7 @@ struct vfio_device_info { · 197 unmodified lines
198198 #define VFIO_DEVICE_FLAGS_PCI (1 << 1) /* vfio-pci device */
199199 #define VFIO_DEVICE_FLAGS_PLATFORM (1 << 2) /* vfio-platform device */
200200 #define VFIO_DEVICE_FLAGS_AMBA (1 << 3) /* vfio-amba device */
201+#define VFIO_DEVICE_FLAGS_CCW (1 << 4) /* vfio-ccw device */
201202 __u32 num_regions; /* Max region index + 1 */
202203 __u32 num_irqs; /* Max IRQ index + 1 */
203204 };
@@ -447,6 +448,16 @@ enum { · 243 unmodified lines
447448 VFIO_PCI_NUM_IRQS
448449 };
449450
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+
450461 /**
451462 * VFIO_DEVICE_GET_PCI_HOT_RESET_INFO - _IORW(VFIO_TYPE, VFIO_BASE + 12,
452463 * struct vfio_pci_hot_reset_info)