From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [PATCH] vfio/iommu_type1: make use of info.flags Date: Mon, 04 Jan 2016 16:39:45 -0700 Message-ID: <1451950785.2874.2.camel@redhat.com> References: <1450872485-5271-1-git-send-email-pmorel@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, sebott@linux.vnet.ibm.com To: Pierre Morel Return-path: In-Reply-To: <1450872485-5271-1-git-send-email-pmorel@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, 2015-12-23 at 13:08 +0100, Pierre Morel wrote: > The flags entry is there to tell the user that some > optional information is available. >=20 > Since we report the iova_pgsizes signal it to the user > by setting the flags to VFIO_IOMMU_INFO_PGSIZES. >=20 > Signed-off-by: Pierre Morel > --- > =C2=A0drivers/vfio/vfio_iommu_type1.c | 2 +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/vfio/vfio_iommu_type1.c > b/drivers/vfio/vfio_iommu_type1.c > index 59d47cb..6f1ea3d 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, > =C2=A0 if (info.argsz < minsz) > =C2=A0 return -EINVAL; > =C2=A0 > - info.flags =3D 0; > + info.flags =3D VFIO_IOMMU_INFO_PGSIZES; > =C2=A0 > =C2=A0 info.iova_pgsizes =3D vfio_pgsize_bitmap(iommu); > =C2=A0 Applied to my next branch for v4.5, thanks! Alex PS - I haven't lost your qemu overflow patch, sorry for the delay.