From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH 1/6] vfio: allow DMA map of memory for the default vfio fd Date: Wed, 13 Feb 2019 14:41:21 +0000 Message-ID: <1144bf5d-b45b-fd20-0134-b149f793ea60@intel.com> References: <0f98e0a06c535d58ac8d2c39645b07eb966ec5ec.1550048187.git.shahafs@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Shahaf Shuler , yskoh@mellanox.com, thomas@monjalon.net, ferruh.yigit@intel.com, nhorman@tuxdriver.com, gaetan.rivet@6wind.com Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 2271558FE for ; Wed, 13 Feb 2019 15:41:25 +0100 (CET) In-Reply-To: <0f98e0a06c535d58ac8d2c39645b07eb966ec5ec.1550048187.git.shahafs@mellanox.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 13-Feb-19 9:10 AM, Shahaf Shuler wrote: > Enable users the option to call rte_vfio_dma_map with request to map > to the default vfio fd. > > Signed-off-by: Shahaf Shuler > --- > lib/librte_eal/common/include/rte_vfio.h | 6 ++++-- > lib/librte_eal/linuxapp/eal/eal_vfio.c | 14 ++++++++++++-- > 2 files changed, 16 insertions(+), 4 deletions(-) > > diff --git a/lib/librte_eal/common/include/rte_vfio.h b/lib/librte_eal/common/include/rte_vfio.h > index cae96fab90..2a6827012f 100644 > --- a/lib/librte_eal/common/include/rte_vfio.h > +++ b/lib/librte_eal/common/include/rte_vfio.h > @@ -347,7 +347,8 @@ rte_vfio_container_group_unbind(int container_fd, int iommu_group_num); > * Perform DMA mapping for devices in a container. > * > * @param container_fd > - * the specified container fd > + * the specified container fd. In case of -1 the default container > + * fd will be used. I haven't looked at the patchset in depth yet, however, this changes the public API, so warrants a note in release notes. -- Thanks, Anatoly