From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 1/2] eal/vfio: check if we already have the group fd open Date: Mon, 29 Oct 2018 01:26:38 +0100 Message-ID: <14140752.NalxdHykFh@xps> References: <20180917134643.103871-1-dariusz.stojaczyk@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Wang, Xiao W" , Alejandro Lucero , "Burakov, Anatoly" , "stable@dpdk.org" To: "Stojaczyk, Dariusz" 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" 25/09/2018 09:56, Wang, Xiao W: > Hi, > > > From: Dariusz Stojaczyk > > > > Always attempt to find already opened fd for an iommu > > group as subsequent attempts to open it will fail. > > > > There's no public API to check if a group was already > > bound and has a container, so rte_vfio_container_group_bind() > > shouldn't fail in such case. > > > > Fixes: ea2dc1066870 ("vfio: add multi container support") > > Cc: xiao.w.wang@intel.com > > > > Signed-off-by: Dariusz Stojaczyk > > Acked-by: Xiao Wang +Cc: stable@dpdk.org Series applied, thanks