History

Merge branches 'v5.10/vfio/bardirty', 'v5.10/vfio/dma_avail', 'v5.10/vfio/misc', 'v5.10/vfio/no-cmd-mem' and 'v5.10/vfio/yan_zhao_fixes' into v5.10/vfio/next

Alex Williamson committed 6 years ago

Commit 3de066f5 parents 1c0f682 7d6e132 eac7cc2 515ecd5 2c5af988 files · +61 −17Browse files

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

Unified · Split

include/uapi/linux/vfio.h+16−1
@@ -462,7 +462,7 @@ struct vfio_region_gfx_edid { · 461 unmodified lines
462462 * 5. Resumed
463463 * |--------->|
464464 *
465− * 0. Default state of VFIO device is _RUNNNG when the user application starts.
465+ * 0. Default state of VFIO device is _RUNNING when the user application starts.
466466 * 1. During normal shutdown of the user application, the user application may
467467 * optionally change the VFIO device state from _RUNNING to _STOP. This
468468 * transition is optional. The vendor driver must support this transition but
@@ -1039,6 +1039,21 @@ struct vfio_iommu_type1_info_cap_migration { · 570 unmodified lines
10391039 __u64 max_dirty_bitmap_size; /* in bytes */
10401040 };
10411041
1042+/*
1043+ * The DMA available capability allows to report the current number of
1044+ * simultaneously outstanding DMA mappings that are allowed.
1045+ *
1046+ * The structure below defines version 1 of this capability.
1047+ *
1048+ * avail: specifies the current number of outstanding DMA mappings allowed.
1049+ */
1050+#define VFIO_IOMMU_TYPE1_INFO_DMA_AVAIL 3
1051+
1052+struct vfio_iommu_type1_info_dma_avail {
1053+ struct vfio_info_cap_header header;
1054+ __u32 avail;
1055+};
1056+
10421057 #define VFIO_IOMMU_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 12)
10431058
10441059 /**