From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by dpdk.org (Postfix) with ESMTP id 11EE32C2F for ; Wed, 17 May 2017 19:20:33 +0200 (CEST) Received: by mail-pf0-f182.google.com with SMTP id 9so10584055pfj.1 for ; Wed, 17 May 2017 10:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ja+UZw1etIQ4C0rTn7lmhzaTvSpBW19DEDSRJ6N3mXE=; b=t5i40BeguuoGV3DY9X2dbbxPjvnOq9MKOdScmemXgJL5BRtbxCgkxtWiRE/EjlBI/H zeXJHCHXCfYZA6n/6jXGykMUl52q+I4V32XC3N0rclu4WJseJcmY7b4szBpCV2K6CcWn Ue2pQKKhFXf1LlQ1y7m8HqSzU+3WdSgCjJ8WRJqk1dXnO9Kph3wf2JnjA4brqYoC4vFT 5lzHskmOdLOCWF9I6DkkmFAF3VxkCfeorCCc7Tgh3ejFO/MlNZxT46ftRstkj45WxPd3 gSMAJjCnjJK7ToIQNwu6+YXao6x72KfZDEwd8qat60flYDWwJa+YuVDC3/qLmPCKG4R9 BgxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ja+UZw1etIQ4C0rTn7lmhzaTvSpBW19DEDSRJ6N3mXE=; b=PaBgtT52eNdYBJ0KBN89pXEmW+Np79W8esaTsXh0YazOG8LwBY5mGq3Zq/8jpXp1F3 8qtmFpP7VsAuOD4miS8WHx8zGpQG9oEsoGM9d6tMw1dEBuaeu2bhJQItLauRhrvnOCse hsXweiK/dMy/kgXrjqARmRghlcbFMPVdom5Leb49Y/5egfznx2WSLiDvrBBkd2U+nGoH Ewv8EkD5D8NyZFb/nuGpnaIxxsGC27W7Df6pLjPlw1WG3+YifbrkPWPIHRiekb9c1gzt BiRgr0TdUHi7gRWtF7ej6nNJ5hdoFEKlRd/Fu7nSu45/N2ecqVHXeUKaz4jHSCJQ8rQL OlWg== X-Gm-Message-State: AODbwcDUsVk74QbkCtk5JaOyZxu/+OdSP9K/FUnjLWR8WNAgnmE4oonr vECWxVzKAVrq4nRLtttKtQ== X-Received: by 10.99.113.74 with SMTP id b10mr4940642pgn.139.1495041632920; Wed, 17 May 2017 10:20:32 -0700 (PDT) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id e71sm4788032pgc.17.2017.05.17.10.20.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 May 2017 10:20:32 -0700 (PDT) Date: Wed, 17 May 2017 10:20:23 -0700 From: Stephen Hemminger To: Pawel Wodkowski Cc: dev@dpdk.org Message-ID: <20170517102023.3c78590e@xeon-e3> In-Reply-To: <1495032287-216322-1-git-send-email-pawelx.wodkowski@intel.com> References: <1495032287-216322-1-git-send-email-pawelx.wodkowski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC][PATCH] vfio: allow to map other memory regions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2017 17:20:34 -0000 On Wed, 17 May 2017 16:44:46 +0200 Pawel Wodkowski wrote: > /* IOMMU types we support */ > static const struct vfio_iommu_type iommu_types[] = { > /* x86 IOMMU, otherwise known as type 1 */ > - { RTE_VFIO_TYPE1, "Type 1", &vfio_type1_dma_map}, > + { RTE_VFIO_TYPE1, "Type 1", &vfio_type1_dma_map, &vfio_type1_dma_mem_map}, > /* ppc64 IOMMU, otherwise known as spapr */ > - { RTE_VFIO_SPAPR, "sPAPR", &vfio_spapr_dma_map}, > + { RTE_VFIO_SPAPR, "sPAPR", &vfio_spapr_dma_map, NULL}, > /* IOMMU-less mode */ > - { RTE_VFIO_NOIOMMU, "No-IOMMU", &vfio_noiommu_dma_map}, > + { RTE_VFIO_NOIOMMU, "No-IOMMU", &vfio_noiommu_dma_map, &vfio_noiommu_dma_mem_map}, > }; For complex tables like this why not use C99 style initializer.