diff options
author | Pierre Morel <pmorel@linux.vnet.ibm.com> | 2015-12-23 07:08:05 -0500 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2016-01-04 14:55:44 -0500 |
commit | d4f50ee2f5b45fc4d9e4142a52edf8b7935a9275 (patch) | |
tree | 5ffdedabaaf9d0c61d6fc2fc8fb700f5c42b5042 | |
parent | 03a76b60f8ba27974e2d252bc555d2c103420e15 (diff) |
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>
-rw-r--r-- | drivers/vfio/vfio_iommu_type1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index 59d47cb638d5..6f1ea3dddbad 100644 --- a/drivers/vfio/vfio_iommu_type1.c +++ b/drivers/vfio/vfio_iommu_type1.c | |||
@@ -995,7 +995,7 @@ static long vfio_iommu_type1_ioctl(void *iommu_data, | |||
995 | if (info.argsz < minsz) | 995 | if (info.argsz < minsz) |
996 | return -EINVAL; | 996 | return -EINVAL; |
997 | 997 | ||
998 | info.flags = 0; | 998 | info.flags = VFIO_IOMMU_INFO_PGSIZES; |
999 | 999 | ||
1000 | info.iova_pgsizes = vfio_pgsize_bitmap(iommu); | 1000 | info.iova_pgsizes = vfio_pgsize_bitmap(iommu); |
1001 | 1001 | ||