From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E30D1594B for ; Tue, 22 Dec 2015 03:51:56 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 21 Dec 2015 18:51:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,462,1444719600"; d="scan'208";a="621951657" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 21 Dec 2015 18:51:56 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 21 Dec 2015 18:51:55 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 21 Dec 2015 18:51:55 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.190]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.151]) with mapi id 14.03.0248.002; Tue, 22 Dec 2015 10:51:49 +0800 From: "Xie, Huawei" To: =?iso-2022-jp?B?TWFydGlueCAtIBskQiU4JSchPCVgJTobKEI=?= Thread-Topic: [dpdk-dev] building LIBRTE_PMD_XENVIRT in 32bit triggers some errors Thread-Index: AQHRPGOzYyXkpndxoESp1HveJw7LKw== Date: Tue, 22 Dec 2015 02:51:48 +0000 Message-ID: References: <3960464.KpnL1qVCkN@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] building LIBRTE_PMD_XENVIRT in 32bit triggers some errors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 02:51:57 -0000 On 12/22/2015 2:04 AM, Martinx - =1B$B%8%'!<%`%:=1B(B wrote:=0A= > On 10 December 2015 at 02:45, Xie, Huawei wrote:= =0A= >> On 12/10/2015 6:49 AM, Martinx - =1B$B%8%'!<%`%:=1B(B wrote:=0A= >>> On 9 December 2015 at 18:05, Thomas Monjalon wrote:=0A= >>>> 2015-12-09 15:54, Martinx - =1B$B%8%'!<%`%:=1B(B:=0A= >>>>> Sorry to insist on this subject but, the time for releasing DPDK 2.2= =0A= >>>>> is near and DPDK build with Xen 32-bit is broken.=0A= >>>>>=0A= >>>>> If DPDK doesn't fix this, there will be no way to enable XenVirt=0A= >>>>> support for next Ubuntu LTS 16.04, which is a shame...=0A= >>>>>=0A= >>>>> I'm planning to use DPDK on Xen domUs (PVM, HVM, XenServer and on=0A= >>>>> Amazon EC2) powered exclusively by a supported version of Ubuntu but,= =0A= >>>>> it is broken now...=0A= >>>>>=0A= >>>>> So, please, can someone take a look into this? :-P=0A= >>>>>=0A= >>>>> Thanks in advance!=0A= >>>> Sorry, this area has no maintainer:=0A= >>>> http://dpdk.org/browse/dpdk/tree/MAINTAINERS#n169=0A= >>>>=0A= >>>> In such case, it may be logic to remove the dead code.=0A= >>>> If someone wants to make it alive, he's welcome!=0A= >>> Hi Thomas,=0A= >>>=0A= >>> Listen, if DPDK on Xen has no maintainer, where can I find the=0A= >>> current state of DPDK on Xen?=0A= >>>=0A= >>> I mean, I'm planning to use DPDK with Xen on the following environment= s:=0A= >>>=0A= >>> * Amazon EC2 - HVM Enhanced Networking - *priority*=0A= >>> * XenServer=0A= >>> * Open Source Xen on Debian / Ubuntu (both PVM / HVM)=0A= >>>=0A= >>> But, if Xen support on DPDK has no maintainer, how to you guys are=0A= >>> running DPDK on top of Xen (like for example, within Amazon EC2)?=0A= >>>=0A= >>> If I google for "DPDK Xen", I can find lots of good information but,= =0A= >>> I can't find recommended setup / drivers...=0A= >>>=0A= >>> Do you have any recommendation?=0A= >> Thiago:=0A= >> This xen PMD is based on grant table mechanism and virtio interface.=0A= >> Worth to note is it needs customized backend, which now resides in=0A= >> examples/vhost_xen.=0A= >> Another approach is netfront based PMD, which has kernel netback backend= =0A= >> in place, but i guess it couldn't achieve best performance as we need=0A= >> map each grant page in backend. Stephen submitted the patch for netfront= =0A= >> PMD http://dpdk.org/dev/patchwork/patch/3330/. Thomas, do you know its= =0A= >> status?=0A= >> Anyway i will try to create the XEN environment, and check the issues.= =0A= >>=0A= >>> Thank you!=0A= >>>=0A= >>> Best,=0A= >>> Thiago=0A= >>>=0A= > Hello Xie,=0A= >=0A= > Thank you for your help, I really appreciated it!=0A= >=0A= > Basically, what I would like to understand is:=0A= >=0A= >=0A= > - What is the BEST way of running DPDK inside a Xen domU guest?=0A= >=0A= >=0A= > I'm seeing that there are too many options and not enough=0A= > documentation about each, for example...=0A= >=0A= > * Does DPDK XENVIRT option, depends on XENDOM0 option? However, you=0A= > said that it isn't fast / can't achieve best performance...=0A= XENDOM0 option is for running DPDK in the "DOM0" domain. For running=0A= DPDK PMD in guest, you don't need to enable it.=0A= Every para virtualization has a driver(in the guest) and the device=0A= implementation(in the host domain).=0A= For KVM, the driver is the virtio-net driver(kernel implementation) or=0A= DPDK virtio PMD(user space implementation), and the device is=0A= vhost-net(kernel acceleration implementation) or vhost-user(user space=0A= acceleration implementation).=0A= For XEN, the driver is the netfront, and the device is netback. For=0A= netfront, Stephen has a DPDK netfront PMD, which isn't merged. For=0A= netback, currently there is no DPDK implementation. The possible=0A= performance problem with netfront/netback is for each guest buffer,=0A= netfront in guest has to dynamically allocate grant id from the=0A= hypervisor to establish the mapping, and netback in DOM0 has to=0A= dynamically translate the buffer through grant id. I haven't followed=0A= the thread using permanent mapping to solve this issue. I recall it adds=0A= extra memory copy.=0A= =0A= If your purpose is to run DPDK pmd in the guest, and you have no control=0A= of DOM0 domain, you could start with Stephen's netfront.=0A= How about VF PMD in your domU guest?=0A= >=0A= > * Apparently, Xen supports VirtIO (if I'm not wrong), but, I honestly=0A= > don't know for sure, where/when it is available (XenServer? Amazon=0A= > high-perf Net Instance? HVM? PVM?)=0A= For XEN, we provide customized DPDK virtio PMD and DPDK vhost, which=0A= means if you want to run DPDK virtio in XEN guest, you have to run our=0A= dpdk vhost in DOM0 as well.=0A= AFAIK, XEN doesn't support VirtIO. There is some Google program on this.=0A= No idea why it isn't up streamed.=0A= >=0A= > * If Xen supports VirtIO (especially on Amazon / XenServer), isn't=0A= > this the BEST way of running DPDK Apps on top of this kind of=0A= > hypervisor (i.e., by not using XENVIRT at all)?=0A= Yes.=0A= >=0A= > Thanks again!=0A= > Thiago=0A= >=0A= =0A=