From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH 1/2] eal/vfio: check if we already have the group fd open Date: Wed, 26 Sep 2018 13:35:07 +0100 Message-ID: <7cbd50e0-5bf6-ea0e-36e0-6da1a25e7ea3@intel.com> References: <20180917134643.103871-1-dariusz.stojaczyk@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Alejandro Lucero , stable@dpdk.org, Dariusz Stojaczyk , xiao.w.wang@intel.com To: Darek Stojaczyk , dev@dpdk.org Return-path: In-Reply-To: <20180917134643.103871-1-dariusz.stojaczyk@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 17-Sep-18 2:46 PM, Darek Stojaczyk wrote: > 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: Anatoly Burakov -- Thanks, Anatoly