@@ -538,12 +538,22 @@ struct vfio_device_gfx_plane_info {
__u32 y_pos; /* vertical position of cursor plane, upper
left corner in lines*/
union {
__u32 region_index; /* region index */
- __s32 fd; /* dma-buf fd */
+ __u32 dmabuf_id; /* dma-buf id */
};
};
#define VFIO_DEVICE_QUERY_GFX_PLANE _IO(VFIO_TYPE, VFIO_BASE + 14)
+struct vfio_device_gfx_dmabuf_fd {
+ __u32 argsz;
+ __u32 flags;
+ /* in */
+ __u32 dmabuf_id;
+ /* out */
+ __s32 dmabuf_fd;
+};
+
+#define VFIO_DEVICE_GET_GFX_DMABUF _IO(VFIO_TYPE, VFIO_BASE + 15)
/* -------- API for Type1 VFIO IOMMU -------- */