From: "H. Sieger" Subject: Re: [Xen-users] Is: DPDK 1.6 and Xen. Was:Re: Virtio on Xen Date: Mon, 10 Mar 2014 04:12:56 -0700 (PDT) Message-ID: <1394449976.5835.YahooMailNeo@web140402.mail.bf1.yahoo.com> References: <201403060047.s260l9V1003989@aserz7021.oracle.com> Reply-To: "H. Sieger" Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8374491142875184740==" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WMy8k-0004rm-B9 for Xen-devel@lists.xenproject.org; Mon, 10 Mar 2014 11:13:02 +0000 In-Reply-To: <201403060047.s260l9V1003989@aserz7021.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk , "Peter X. Gao" Cc: "Xen-devel@lists.xenproject.org" , Fabio Fantoni , "wei.liu2@citrix.com" , Ian Campbell , "xen-users@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============8374491142875184740== Content-Type: multipart/alternative; boundary="1085140594-1038724417-1394449976=:5835" --1085140594-1038724417-1394449976=:5835 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Intel has a getting started guide - perhaps that helps: http://www.intel.co= m/content/www/us/en/intelligent-systems/intel-technology/intel-dpdk-getting= -started-guide.html=0A=0ACheck the Xen section.=0A=0A=0A=0A=0AOn Thursday, = March 6, 2014 2:50 AM, Konrad Rzeszutek Wilk wrote= :=0A =0A=0AOn Mar 5, 2014 5:33 PM, "Peter X. Gao" = wrote:=0A>=0A> Hi Konrad, =0A>=0A> =A0=A0=A0=A0 Just to make sure I unders= tand everything. So I need to set up =0A> 2MB hugepage in Dom0 and use a mo= dule to share it with a HVM guest. =0A> How could I compile the module? =0A= > =A0=A0=A0=A0 Inside the DomU, how could I see the shared 2MB hugepages? D= o I =0A> need another frontend driver? Many thanks. =0A>=0A=0APlease don't = top post. I am afraid that I can't help you much - as I just did a scan thr= ough the logs and found that.=0A=0AI would recommend you email this to the = DPDK mailing list. They should be able to help you much more thoroughly tha= n I can.=0A> Regards =0A> Peter =0A>=0A> On Wed, Mar 5, 2014 at 10:02 AM, K= onrad Rzeszutek Wilk =0A> wrote: =0A> > On Tue, Fe= b 11, 2014 at 01:01:40PM +0000, Ian Campbell wrote: =0A> >> On Mon, 2014-02= -10 at 10:07 -0800, Peter X. Gao wrote: =0A> >> > Thanks for your reply. I = am now using virtio-net and it seems working. =0A> >> > However, Intel DPDK= also requires hugepage. When a DPDK application is =0A> >> > initiating hu= gepage, I got the following error. Do I need to config =0A> >> > something = in Xen to support hugepage? =0A> >> =0A> >> I'm not sure about the status o= f superpage support in mainline kernels =0A> >> for PV Xen guests. IIRC the= re was a requirement to add a Xen command =0A> >> line flag to enable it at= the level. =0A> >> =0A> >> Or you could just use an HVM guest, since no sp= ecial support is needed =0A> >> for hugepages there. =0A> >> =0A> >> But ma= ybe I'm confused because I think your use of virtio-net would =0A> >> neces= sarily require that you be using an HVM not PV guest. =0A> >> =0A> >> But t= hen looking at your logs I see Xen PV block and net but no sign of =0A> >> = virtio -- so I suspect you are actually doing PV and not using =0A> >> virt= io-net at all. =0A> > =0A> > DPDK 1.6 is out - and you can do Xen. You need= to use HVM guests and =0A> > a special module in dom0 to setup 2MB conting= ous pages that =0A> > is shared with the guest. =0A> > =0A> > The protocol = that DPDK uses is VirtIO. =0A> > =0A> > See: =0A> > http://dpdk.org/browse/= dpdk/commit/?id=3D47bd46112b710dc59b1becfb67e18da319c5debe =0A> > http://dp= dk.org/browse/dpdk/commit/?id=3D148f963fb5323c1c6b6d5cea95084deb25cc73f8 = =0A> > =0A> >> =0A> >> Ian. =0A> >> =0A> >> =0A> >> =0A> >> _______________= ________________________________ =0A> >> Xen-devel mailing list =0A> >> Xen= -devel@lists.xen.org =0A> >> http://lists.xen.org/xen-devel =0A____________= ___________________________________=0AXen-users mailing list=0AXen-users@li= sts.xen.org=0Ahttp://lists.xen.org/xen-users --1085140594-1038724417-1394449976=:5835 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Intel has a getting started guide - perhaps that helps: http://www.intel.com/content/= www/us/en/intelligent-systems/intel-technology/intel-dpdk-getting-started-g= uide.html

Check the Xen section.


On Thursday, March 6, 2014 2:50 AM, Konrad Rzeszutek= Wilk <konrad.wilk@oracle.com> wrote:

On Mar 5, 2014 5:33 PM, "Peter X. Gao" <peterxianggao@gmail.com> wrote:
>
> Hi Konrad,
&= gt;
>      Just to make sure I understand everyth= ing. So I need to set up
> 2MB hugepage in Dom0 and use a module to = share it with a HVM guest.
> How could I compile the module?
>= ;      Inside the DomU, how could I see the shared 2MB = hugepages? Do I
> need another frontend driver? Many thanks.
>= ;

Please don't top post. I am afraid that I can't help you much - as= I just did a scan through the logs and found that.

I would recommen= d you email this to the DPDK mailing list. They should be able to help you much = more thoroughly than I can.
> Regards
> Peter
>
>= On Wed, Mar 5, 2014 at 10:02 AM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
> > On Tue, Feb 11, 2014= at 01:01:40PM +0000, Ian Campbell wrote:
> >> On Mon, 2014-02= -10 at 10:07 -0800, Peter X. Gao wrote:
> >> > Thanks for y= our reply. I am now using virtio-net and it seems working.
> >>= ; > However, Intel DPDK also requires hugepage. When a DPDK application = is
> >> > initiating hugepage, I got the following error. D= o I need to config
> >> > something in Xen to support hugep= age?
> >>
> >> I'm not sure about the status of s= uperpage support in mainline kernels
> >> for PV Xen guests. IIRC there was a requirement to add a Xen command
> >>= ; line flag to enable it at the level.
> >>
> >> = Or you could just use an HVM guest, since no special support is needed
= > >> for hugepages there.
> >>
> >> But = maybe I'm confused because I think your use of virtio-net would
> &g= t;> necessarily require that you be using an HVM not PV guest.
> = >>
> >> But then looking at your logs I see Xen PV block= and net but no sign of
> >> virtio -- so I suspect you are ac= tually doing PV and not using
> >> virtio-net at all.
>= >
> > DPDK 1.6 is out - and you can do Xen. You need to use H= VM guests and
> > a special module in dom0 to setup 2MB contingou= s pages that
> > is shared with the guest.
> >
>= > The protocol that DPDK uses is VirtIO.
> >
> > See:
> > http://dpdk.= org/browse/dpdk/commit/?id=3D47bd46112b710dc59b1becfb67e18da319c5debe <= br>> > http://dpdk.org/browse/dp= dk/commit/?id=3D148f963fb5323c1c6b6d5cea95084deb25cc73f8
> > =
> >>
> >> Ian.
> >>
> >>= ;
> >>
> >> _____________________________________= __________
> >> Xen-devel mailing list
> >> Xen-devel@lists.xen.org
> >> http://lists.xen.org/xen-devel _______________________________________________
Xen-users mailing list=
Xen-users@lists.xen.org
http://lists.xen.org/xen-users

=
--1085140594-1038724417-1394449976=:5835-- --===============8374491142875184740== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============8374491142875184740==--