From: Shreyansh Jain Subject: Re: [PATCH] vfio: fix compile on older kernels Date: Wed, 22 Mar 2017 10:16:17 +0530 Message-ID: <467aba33-3bcb-0d1f-c762-4281b2f5a870@nxp.com> References: <1490112483-5603-1-git-send-email-anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , To: Anatoly Burakov Return-path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0078.outbound.protection.outlook.com [104.47.38.78]) by dpdk.org (Postfix) with ESMTP id C5ACC133F for ; Wed, 22 Mar 2017 05:40:21 +0100 (CET) In-Reply-To: <1490112483-5603-1-git-send-email-anatoly.burakov@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Super trivial comment inline: On Tuesday 21 March 2017 09:38 PM, Anatoly Burakov wrote: > From: "Burakov, Anatoly" > > Fixing compile failures for kernels without sPAPR IOMMU support. > > Fixes: 0fe9830b5345 ("eal/ppc: support sPAPR IOMMU for vfio-pci") > Signed-off-by: Burakov, Anatoly > --- > lib/librte_eal/linuxapp/eal/eal_vfio.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.h b/lib/librte_eal/linuxapp/eal/eal_vfio.h > index ac31a4f..58b7976 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_vfio.h > +++ b/lib/librte_eal/linuxapp/eal/eal_vfio.h > @@ -59,6 +59,7 @@ > #define VFIO_IOMMU_SPAPR_REGISTER_MEMORY _IO(VFIO_TYPE, VFIO_BASE + 17) > #define VFIO_IOMMU_SPAPR_TCE_CREATE _IO(VFIO_TYPE, VFIO_BASE + 19) > #define VFIO_IOMMU_SPAPR_TCE_REMOVE _IO(VFIO_TYPE, VFIO_BASE + 20) > +#define VFIO_IOMMU_SPAPR_TCE_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 12) I guess a new line should be added here and ... > struct vfio_iommu_spapr_register_memory { > uint32_t argsz; > uint32_t flags; > @@ -75,6 +76,18 @@ struct vfio_iommu_spapr_tce_remove { > uint32_t argsz; > uint64_t start_addr; > }; and here... > +struct vfio_iommu_spapr_tce_ddw_info { > + uint64_t pgsizes; > + uint32_t max_dynamic_windows_supported; > + uint32_t levels; > +}; and here. > +struct vfio_iommu_spapr_tce_info { > + uint32_t argsz; > + uint32_t flags; > + uint32_t dma32_window_start; > + uint32_t dma32_window_size; > + struct vfio_iommu_spapr_tce_ddw_info ddw; > +}; > #else > #define RTE_VFIO_SPAPR VFIO_SPAPR_TCE_v2_IOMMU > #endif >