diff options
author | Pierre Morel <pmorel@linux.vnet.ibm.com> | 2015-12-23 15:08:05 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2016-01-04 22:55:44 +0300 |
commit | d4f50ee2f5b45fc4d9e4142a52edf8b7935a9275 (patch) | |
tree | 5ffdedabaaf9d0c61d6fc2fc8fb700f5c42b5042 /drivers/vfio | |
parent | 03a76b60f8ba27974e2d252bc555d2c103420e15 (diff) | |
download | linux-d4f50ee2f5b45fc4d9e4142a52edf8b7935a9275.tar.xz |
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.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, if (info.argsz < minsz) return -EINVAL; - info.flags = 0; + info.flags = VFIO_IOMMU_INFO_PGSIZES; info.iova_pgsizes = vfio_pgsize_bitmap(iommu); |