浏览代码

vfio/iommu_type1: make use of info.flags

The flags entry is there to tell the user that some
optional information is available.

Since we report the iova_pgsizes signal it to the user
by setting the flags to VFIO_IOMMU_INFO_PGSIZES.

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Pierre Morel 9 年之前
父节点
当前提交
d4f50ee2f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/vfio/vfio_iommu_type1.c

+ 1 - 1
drivers/vfio/vfio_iommu_type1.c

@@ -995,7 +995,7 @@ static long vfio_iommu_type1_ioctl(void *iommu_data,
 		if (info.argsz < minsz)
 			return -EINVAL;
 
-		info.flags = 0;
+		info.flags = VFIO_IOMMU_INFO_PGSIZES;
 
 		info.iova_pgsizes = vfio_pgsize_bitmap(iommu);