From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [dpdk-stable] [PATCH v2] vfio: allow secondary process to query IOMMU type Date: Mon, 21 Jan 2019 16:19:29 +0100 Message-ID: <43003386.oRXqUKJA9s@xps> References: <2101fda2f9030723c662419ec9b4a33d2dc7aded.1547807046.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: stable@dpdk.org, "Stojaczyk, Dariusz" , "dev@dpdk.org" , "Wang, Xiao W" , "Zhang, Qi Z" , "qingfu.cqf@alibaba-inc.com" , ferruh.yigit@intel.com To: "Burakov, Anatoly" Return-path: In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 21/01/2019 11:29, Stojaczyk, Dariusz: > > It is only possible to know IOMMU type of a given VFIO container > > by attempting to initialize it. Since secondary process never > > attempts to set up VFIO container itself (because they're shared > > between primary and secondary), it never knows which IOMMU type > > the container is using, and never sets up the appropriate config > > structures. This results in inability to perform DMA mappings in > > secondary process. > > > > Fix this by allowing secondary process to query IOMMU type of > > primary's default container at device initialization. > > > > Note that this fix is assuming we're only interested in default > > container. > > > > Bugzilla ID: 174 > > > > Fixes: 6bcb7c95fe14 ("vfio: share default container in multi-process") > > Cc: dariusz.stojaczyk@intel.com > > Cc: stable@dpdk.org > > > > Signed-off-by: Anatoly Burakov > > --- > > Reviewed-by: Darek Stojaczyk > > Thanks! > In commit 6bcb7c95fe1 (vfio: share default container in multi-process) we fixed just the container fd and not the rte_vfio mapping APIs because we did not even use those APIs in SPDK. Applied, thanks