DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] vhost user examples
@ 2015-01-27 14:11 Benoît Canet
  2015-01-27 16:33 ` Xie, Huawei
  0 siblings, 1 reply; 5+ messages in thread
From: Benoît Canet @ 2015-01-27 14:11 UTC (permalink / raw)
  To: huawei.xie, dev


Hi Xie,

I would be interested in alpha testing the vhost user patchset.

Is there an up to date example of how to use it ?

Best regards

Benoît

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] vhost user examples
  2015-01-27 14:11 [dpdk-dev] vhost user examples Benoît Canet
@ 2015-01-27 16:33 ` Xie, Huawei
  2015-01-27 16:59   ` Benoît Canet
  0 siblings, 1 reply; 5+ messages in thread
From: Xie, Huawei @ 2015-01-27 16:33 UTC (permalink / raw)
  To: Benoît Canet, dev


> -----Original Message-----
> From: Benoît Canet [mailto:benoit.canet@irqsave.net]
> Sent: Tuesday, January 27, 2015 10:11 PM
> To: Xie, Huawei; dev@dpdk.org
> Subject: vhost user examples
> 
> 
> Hi Xie,
> 
> I would be interested in alpha testing the vhost user patchset.
> 
> Is there an up to date example of how to use it ?
> 

vHost has a parameter called base_name. Temporarily you could specify --base-name as
the unix domain socket path, and set it in the qemu command line as socket path.
recommended qemu command line for memory and vhost configuration:
-m $MEM -object memory-backend-file,id=mem,size=${MEM}M,mem-path=/mnt/huge,share=on -numa node,memdev=mem  -mem-prealloc
-chardev socket,id=char0,path=$sock_path  -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-device virtio-net-pci,mac=52:54:00:12:34:11,netdev=mynet1

> Best regards
> 
> Benoît

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] vhost user examples
  2015-01-27 16:33 ` Xie, Huawei
@ 2015-01-27 16:59   ` Benoît Canet
  2015-01-27 17:10     ` Xie, Huawei
  0 siblings, 1 reply; 5+ messages in thread
From: Benoît Canet @ 2015-01-27 16:59 UTC (permalink / raw)
  To: Xie, Huawei; +Cc: dev

The Tuesday 27 Jan 2015 à 16:33:19 (+0000), Xie, Huawei wrote :
> 
> > -----Original Message-----
> > From: Benoît Canet [mailto:benoit.canet@irqsave.net]
> > Sent: Tuesday, January 27, 2015 10:11 PM
> > To: Xie, Huawei; dev@dpdk.org
> > Subject: vhost user examples
> > 
> > 
> > Hi Xie,
> > 
> > I would be interested in alpha testing the vhost user patchset.
> > 
> > Is there an up to date example of how to use it ?
> > 
> 
> vHost has a parameter called base_name. Temporarily you could specify --base-name as
> the unix domain socket path, and set it in the qemu command line as socket path.
> recommended qemu command line for memory and vhost configuration:
> -m $MEM -object memory-backend-file,id=mem,size=${MEM}M,mem-path=/mnt/huge,share=on -numa node,memdev=mem  -mem-prealloc
> -chardev socket,id=char0,path=$sock_path  -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
> -device virtio-net-pci,mac=52:54:00:12:34:11,netdev=mynet1

Thanks,

Is the upstream vhost example in master already patched for this ?
Or does it still required some patches ?

Best regards

Benoît

> 
> > Best regards
> > 
> > Benoît

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] vhost user examples
  2015-01-27 16:59   ` Benoît Canet
@ 2015-01-27 17:10     ` Xie, Huawei
  2015-01-27 17:15       ` Benoît Canet
  0 siblings, 1 reply; 5+ messages in thread
From: Xie, Huawei @ 2015-01-27 17:10 UTC (permalink / raw)
  To: Benoît Canet; +Cc: dev



> -----Original Message-----
> From: Benoît Canet [mailto:benoit.canet@irqsave.net]
> Sent: Wednesday, January 28, 2015 1:00 AM
> To: Xie, Huawei
> Cc: Benoît Canet; dev@dpdk.org
> Subject: Re: vhost user examples
> 
> The Tuesday 27 Jan 2015 à 16:33:19 (+0000), Xie, Huawei wrote :
> >
> > > -----Original Message-----
> > > From: Benoît Canet [mailto:benoit.canet@irqsave.net]
> > > Sent: Tuesday, January 27, 2015 10:11 PM
> > > To: Xie, Huawei; dev@dpdk.org
> > > Subject: vhost user examples
> > >
> > >
> > > Hi Xie,
> > >
> > > I would be interested in alpha testing the vhost user patchset.
> > >
> > > Is there an up to date example of how to use it ?
> > >
> >
> > vHost has a parameter called base_name. Temporarily you could specify --
> base-name as
> > the unix domain socket path, and set it in the qemu command line as socket
> path.
> > recommended qemu command line for memory and vhost configuration:
> > -m $MEM -object memory-backend-file,id=mem,size=${MEM}M,mem-
> path=/mnt/huge,share=on -numa node,memdev=mem  -mem-prealloc
> > -chardev socket,id=char0,path=$sock_path  -netdev type=vhost-
> user,id=mynet1,chardev=char0,vhostforce \
> > -device virtio-net-pci,mac=52:54:00:12:34:11,netdev=mynet1
> 
> Thanks,
> 
> Is the upstream vhost example in master already patched for this ?
> Or does it still required some patches ?
Yes, vhost example already supports base_name parameter.
Previously it is used for name of the vhost character device file.
You could use it as socket path name.

> 
> Best regards
> 
> Benoît
> 
> >
> > > Best regards
> > >
> > > Benoît

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] vhost user examples
  2015-01-27 17:10     ` Xie, Huawei
@ 2015-01-27 17:15       ` Benoît Canet
  0 siblings, 0 replies; 5+ messages in thread
From: Benoît Canet @ 2015-01-27 17:15 UTC (permalink / raw)
  To: Xie, Huawei; +Cc: dev

The Tuesday 27 Jan 2015 à 17:10:29 (+0000), Xie, Huawei wrote :
> 
> 
> > -----Original Message-----
> > From: Benoît Canet [mailto:benoit.canet@irqsave.net]
> > Sent: Wednesday, January 28, 2015 1:00 AM
> > To: Xie, Huawei
> > Cc: Benoît Canet; dev@dpdk.org
> > Subject: Re: vhost user examples
> > 
> > The Tuesday 27 Jan 2015 à 16:33:19 (+0000), Xie, Huawei wrote :
> > >
> > > > -----Original Message-----
> > > > From: Benoît Canet [mailto:benoit.canet@irqsave.net]
> > > > Sent: Tuesday, January 27, 2015 10:11 PM
> > > > To: Xie, Huawei; dev@dpdk.org
> > > > Subject: vhost user examples
> > > >
> > > >
> > > > Hi Xie,
> > > >
> > > > I would be interested in alpha testing the vhost user patchset.
> > > >
> > > > Is there an up to date example of how to use it ?
> > > >
> > >
> > > vHost has a parameter called base_name. Temporarily you could specify --
> > base-name as
> > > the unix domain socket path, and set it in the qemu command line as socket
> > path.
> > > recommended qemu command line for memory and vhost configuration:
> > > -m $MEM -object memory-backend-file,id=mem,size=${MEM}M,mem-
> > path=/mnt/huge,share=on -numa node,memdev=mem  -mem-prealloc
> > > -chardev socket,id=char0,path=$sock_path  -netdev type=vhost-
> > user,id=mynet1,chardev=char0,vhostforce \
> > > -device virtio-net-pci,mac=52:54:00:12:34:11,netdev=mynet1
> > 
> > Thanks,
> > 
> > Is the upstream vhost example in master already patched for this ?
> > Or does it still required some patches ?
> Yes, vhost example already supports base_name parameter.
> Previously it is used for name of the vhost character device file.
> You could use it as socket path name.

Thanks a lot

I am looking forward receiving my intel network card and testing
it.

Best regards

Benoît
> 
> > 
> > Best regards
> > 
> > Benoît
> > 
> > >
> > > > Best regards
> > > >
> > > > Benoît

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-27 17:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 14:11 [dpdk-dev] vhost user examples Benoît Canet
2015-01-27 16:33 ` Xie, Huawei
2015-01-27 16:59   ` Benoît Canet
2015-01-27 17:10     ` Xie, Huawei
2015-01-27 17:15       ` Benoît Canet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).