vfio/iommu_type1: make use of info.flags
authorPierre Morel <pmorel@linux.vnet.ibm.com>
Wed, 23 Dec 2015 12:08:05 +0000 (13:08 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 4 Jan 2016 19:55:44 +0000 (12:55 -0700)
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>
drivers/vfio/vfio_iommu_type1.c

index 59d47cb638d5d18aac6700157ecc9be918772f91..6f1ea3dddbad9a75dd094d8613fb426742f844e4 100644 (file)
@@ -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);