From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by dpdk.org (Postfix) with ESMTP id 3BB921B2CF for ; Thu, 19 Oct 2017 21:22:04 +0200 (CEST) Received: by mail-qk0-f181.google.com with SMTP id d67so11731785qkg.5 for ; Thu, 19 Oct 2017 12:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cAWdQZORkkCj+kWlYfDJThEdMSL7KD/kBKUqY4diJlw=; b=glP/H3tZo65OjR9pMSovxHV+piq2i/J6F+42ojTuPJBkr6Eka0+qllz8goIA5V+jVq 5wmqCLshx6hbdzzbzN84+l4nGGPCtkLhTwqFO2slT8oXJDYHkdh5gi1QY0PbqNPzdctD tB4wouXxhbt1DKORvDpC5L3ZMkwc/sDXIyZwpx3smwVDnGlzDPZYN4t3NrAqKAC4uQkM s/C3w1RezEa2Cc2CIfyRekk7sYGPga4jTn3UhrpDPR/w8Oc9w0K5qAeFo+AwafwGwIGJ tms7uWU37O2gEZwJxQRTte4dtcFWtNw3a84ypxyivcmN2S9oK9mD8IYRWp8tk0wl7e8W ZYMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=cAWdQZORkkCj+kWlYfDJThEdMSL7KD/kBKUqY4diJlw=; b=YfVrhPLTG/xinaQrcN1UnT4mPfIbMaqtcsxVZrERLvvStwPtpsPKLGekPEVWxiP/3k eBUaLdDopasbIVAm90rJ8OmmbZWMSXWhBX7h5ZqUSqELoltsiRD/p7tyymkSQu2oCEZK 5DNObcf5jgTqEAMZWIxsC8meEIpVswBOMkasLBKZk48tyZyZYz0viOFEmINxLmOrKr2E mxigsk6mHq/NL+SXVxGDwsBJOgblsycxbj6wLgJBgCLu2gJrCIHdFBfo1Imky7kOfhT+ WBayGOfccqPt+rX4jHp9YCysHwYkhOkKeqeFv24jbpH5dDmAd9x3IZ7OaDqRgqtUjMRI BPvg== X-Gm-Message-State: AMCzsaWSUezZeFdP1zMpzW03DiwGeVNAIuxILqQcAnToqurV0GjPpSs7 6aPqcEu+ggILcMd6/dmoHfc= X-Google-Smtp-Source: ABhQp+SdhdwfD9GSBZFFrvSTvl6OGK2gTg1YJmKxLEpFstqAp/8UkUhpR7LD63MuF+cESasDm+jc+Q== X-Received: by 10.55.82.86 with SMTP id g83mr3402165qkb.342.1508440923472; Thu, 19 Oct 2017 12:22:03 -0700 (PDT) Received: from x230.dumpdata.com (209-6-200-48.s4398.c3-0.smr-ubr2.sbo-smr.ma.cable.rcncustomer.com. [209.6.200.48]) by smtp.gmail.com with ESMTPSA id l126sm7784732qkf.96.2017.10.19.12.22.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2017 12:22:02 -0700 (PDT) Sender: Konrad Rzeszutek Date: Thu, 19 Oct 2017 15:21:30 -0400 From: Konrad Rzeszutek Wilk To: "Tan, Jianfeng" Cc: Bill Bonaparte , bernard.iremonger@intel.com, huawei.xie@intel.com, bruce.richardson@intel.com, thomas@monjalon.net, david.marchand@6wind.com, shreyansh.jain@nxp.com, pablo.de.lara.guarch@intel.com, olivier.matz@6wind.com, yuanhan.liu@linux.intel.com, xen-devel@lists.xenproject.org, DPDK Message-ID: <20171019192130.GA17212@x230.dumpdata.com> References: <1585937b-613c-eecf-5b08-d840a3265329@intel.com> <7612e974-4dfd-970e-2bce-f59cfacf1aee@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7612e974-4dfd-970e-2bce-f59cfacf1aee@intel.com> User-Agent: Mutt/1.9.0 (2017-09-02) Subject: Re: [dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ? 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: Thu, 19 Oct 2017 19:22:04 -0000 On Mon, Oct 09, 2017 at 12:13:47AM +0800, Tan, Jianfeng wrote: > Hi, > > > On 10/8/2017 12:54 PM, Bill Bonaparte wrote: > > Thanks Jianfeng for taking time to reply. > > > > please allow me to briefly explain why I want to run dpdk on xen. > > our system is based on dpdk, which means we use dpdk as packet > > receive/transmit engine, > > and with integrated dpdk virtio/vmxnet3 driver, our system can run on > > KVM/VMware platform . > > this year, we have plan to run our system on AWS cloud, but I found that > > AWS > > uses xen as its virtualization platform, and the bus-info of nic is > > vif-x (x could be 0,1,2...), > > the driver used in kernel is vif. this should be para-virtualized nic > > used on xen. > > My guess is exactly as you describe. In AWS, we lack of a PMD for xen > netfront (vif) nic. And even we got such a PMD, we still need a PMD for xen > netback. Both are missing. > > > > > I don't know which dpdk drvier can manage this pv nic. then I see > > xenvirt, I think this driver can > > did this job, like virtio can manage virtio nic which is used on kvm. > > unfortunately, after some study work, I run testpmd successfully on xen, > > but no packets received. > > > > with the informain got from you, I know It's need to run vhost_xen at > > dom0 so that xenvirt at domU can work. > > but for my case, I have no change to run vhost_xen at dom0, because I > > only can operate my own domU. > > > > for this case, If I want to run system which is based on dpdk at domU, > > what should I do? > > appreciate any idea or suggestion from you. > > What kind of performance are you seeking? Only accelerating the frontend by > a new PMD, i.e. netfront, we can bypass the VM kernel (). But without > accelerating the backend, it only brings limited improvement. > > Not sure if anyone from Amazon or Oracle can comment? Joao has been working on updates in the Xen PV network driver such that there is a higher acceleration (aka recycle grants). See in xen.git tree: commit 30655e2bf0ce8ee50e61728e2558e0363f4af1c9 Author: Joao Martins Date: Tue Oct 3 18:46:08 2017 +0100 public/io/netif.h: add gref mapping control messages This combined with the drivers that Broadcom wrote (I think that is the name of the company that posted them a year or so ago), should provide awesome performance. > > Thanks, > Jianfeng