summaryrefslogtreecommitdiffstats
path: root/drivers/vfio
diff options
context:
space:
mode:
authorPierre Morel <pmorel@linux.vnet.ibm.com>2015-12-23 13:08:05 +0100
committerAlex Williamson <alex.williamson@redhat.com>2016-01-04 12:55:44 -0700
commitd4f50ee2f5b45fc4d9e4142a52edf8b7935a9275 (patch)
tree5ffdedabaaf9d0c61d6fc2fc8fb700f5c42b5042 /drivers/vfio
parent03a76b60f8ba27974e2d252bc555d2c103420e15 (diff)
downloadlinux-stable-d4f50ee2f5b45fc4d9e4142a52edf8b7935a9275.tar.gz
linux-stable-d4f50ee2f5b45fc4d9e4142a52edf8b7935a9275.tar.bz2
linux-stable-d4f50ee2f5b45fc4d9e4142a52edf8b7935a9275.zip
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>
Diffstat (limited to 'drivers/vfio')
-rw-r--r--drivers/vfio/vfio_iommu_type1.c2
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,
if (info.argsz < minsz)
return -EINVAL;
- info.flags = 0;
+ info.flags = VFIO_IOMMU_INFO_PGSIZES;
info.iova_pgsizes = vfio_pgsize_bitmap(iommu);