From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5AA37402242D; Sat, 31 Mar 2018 11:06:51 +0000 (UTC) Received: from [10.36.112.22] (ovpn-112-22.ams2.redhat.com [10.36.112.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2400F111DD13; Sat, 31 Mar 2018 11:06:46 +0000 (UTC) To: Xiao Wang , ferruh.yigit@intel.com 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 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> From: Maxime Coquelin Message-ID: <689ea47f-e470-961a-4ace-c6796bd96c84@redhat.com> Date: Sat, 31 Mar 2018 13:06:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180331022929.42172-2-xiao.w.wang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Sat, 31 Mar 2018 11:06:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Sat, 31 Mar 2018 11:06:51 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Subject: Re: [dpdk-dev] [PATCH v3 1/4] eal/vfio: add support for multiple container 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: Sat, 31 Mar 2018 11:06:52 -0000 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