From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v3 1/4] eal/vfio: add support for multiple container Date: Sat, 31 Mar 2018 13:06:44 +0200 Message-ID: <689ea47f-e470-961a-4ace-c6796bd96c84@redhat.com> References: <20180321132108.52464-4-xiao.w.wang@intel.com> <20180331022929.42172-1-xiao.w.wang@intel.com> <20180331022929.42172-2-xiao.w.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, zhihong.wang@intel.com, yliu@fridaylinux.org, jianfeng.tan@intel.com, tiwei.bie@intel.com, cunming.liang@intel.com, dan.daly@intel.com, thomas@monjalon.net, gaetan.rivet@6wind.com, anatoly.burakov@intel.com, Junjie Chen To: Xiao Wang , ferruh.yigit@intel.com Return-path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id 23F0B2BD8 for ; Sat, 31 Mar 2018 13:06:51 +0200 (CEST) In-Reply-To: <20180331022929.42172-2-xiao.w.wang@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 03/31/2018 04:29 AM, Xiao Wang wrote: > From: Junjie Chen > > Currently eal vfio framework binds vfio group fd to the default > container fd, while in some cases, e.g. vDPA (vhost data path > acceleration), we want to set vfio group to a new container and > program DMA mapping via this new container, so this patch adds > APIs to support multiple container. > > Signed-off-by: Junjie Chen > Signed-off-by: Xiao Wang > --- > config/common_base | 1 + > lib/librte_eal/bsdapp/eal/eal.c | 51 ++- > lib/librte_eal/common/include/rte_vfio.h | 116 +++++++ > lib/librte_eal/linuxapp/eal/eal_vfio.c | 552 +++++++++++++++++++++++++------ > lib/librte_eal/linuxapp/eal/eal_vfio.h | 1 + > lib/librte_eal/rte_eal_version.map | 7 + > 6 files changed, 627 insertions(+), 101 deletions(-) > FWIW: Reviewed-by: Maxime Coquelin Thanks, Maxime