From: Pierre Morel Subject: [PATCH] vfio/iommu_type1: make use of info.flags Date: Wed, 23 Dec 2015 13:08:05 +0100 Message-ID: <1450872485-5271-1-git-send-email-pmorel@linux.vnet.ibm.com> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, pmorel@linux.vnet.ibm.com, sebott@linux.vnet.ibm.com To: alex.williamson@redhat.com Return-path: Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:43844 "EHLO e06smtp16.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754136AbbLWMIM (ORCPT ); Wed, 23 Dec 2015 07:08:12 -0500 Received: from localhost by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 23 Dec 2015 12:08:09 -0000 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- drivers/vfio/vfio_iommu_type1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, if (info.argsz < minsz) return -EINVAL; - info.flags = 0; + info.flags = VFIO_IOMMU_INFO_PGSIZES; info.iova_pgsizes = vfio_pgsize_bitmap(iommu); -- 2.3.0