From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 6A5AC1B192; Wed, 26 Sep 2018 14:35:40 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2018 05:35:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,306,1534834800"; d="scan'208";a="265870864" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.252.17.84]) ([10.252.17.84]) by fmsmga005.fm.intel.com with ESMTP; 26 Sep 2018 05:35:08 -0700 To: Darek Stojaczyk , dev@dpdk.org Cc: Alejandro Lucero , stable@dpdk.org, Dariusz Stojaczyk , xiao.w.wang@intel.com References: <20180917134643.103871-1-dariusz.stojaczyk@intel.com> From: "Burakov, Anatoly" Message-ID: <7cbd50e0-5bf6-ea0e-36e0-6da1a25e7ea3@intel.com> Date: Wed, 26 Sep 2018 13:35:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180917134643.103871-1-dariusz.stojaczyk@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/2] eal/vfio: check if we already have the group fd open 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, 26 Sep 2018 12:35:41 -0000 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