vfio/iommu_type1: make use of info.flags
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/vfio/vfio_iommu_type1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/vfio_iommu_type1.c +1 -1
@@ -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);
Signature · 1 line
2.3.0
Alex Williamson
AppliedQuoted 23 lines · Pierre Morel
The flags entry is there to tell the user that some optional information is available.
Since we report the
iova_pgsizessignal it to the user by setting the flags toVFIO_IOMMU_INFO_PGSIZES.Signed-off-by Pierre Morel <[email protected]>---
drivers/vfio/vfio_iommu_type1.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/vfio/vfio_iommu_type1.c +0
-0@@ -995,7 +995,7 @@ static long vfio_iommu_type1_ioctl(void *iommu_data, if (info.argsz < minsz) return -EINVAL;drivers/vfio/vfio_iommu_type1.c +1
-1- info.flags =0 ; + info.flags =VFIO_IOMMU_INFO_PGSIZES ;
Quoted 3 lines
info.iova_pgsizes =vfio_pgsize_bitmap(iommu);
Applied to my next branch for v4.5, thanks!
Alex
PS - I haven't lost your qemu overflow patch, sorry for the delay.