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 ?
Best regards
Benoît
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines
-----Original Message-----
From: Benoît Canet [mailto:[email protected]]
Sent: Tuesday, January 27, 2015 10:11 PM
To: Xie, Huawei; [email protected]
Subject: vhost user examples
Quoted 6 lines
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
Quoted 3 lines
Best regards
Benoît
A message that is not in the archive (sent off-list or not yet received): C37D651A908B024F974696C65296B57B0F362B46-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org
Quoted 18 lines · Huawei
Quoted 8 lines
-----Original Message-----
From: Benoît Canet [mailto:[email protected]]
Sent: Tuesday, January 27, 2015 10:11 PM
To: Xie, Huawei; [email protected]
Subject: vhost user examplesQuoted 6 lines
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:
Review
Quoted 3 lines
(quoted diff) +0
-3-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
Quoted 4 lines
Quoted 4 lines
Best regards
Benoît
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 32 lines
-----Original Message-----
From: Benoît Canet [mailto:[email protected]]
Sent: Wednesday, January 28, 2015 1:00 AM
To: Xie, Huawei
Cc: Benoît Canet; [email protected]
Subject: Re: vhost user examplesQuoted 8 lines · Huawei
Quoted 8 lines
-----Original Message-----
From: Benoît Canet [mailto:[email protected]]
Sent: Tuesday, January 27, 2015 10:11 PM
To: Xie, Huawei; [email protected]
Subject: vhost user examplesQuoted 8 lines
Quoted 6 lines
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
Quoted 1 line
the unix domain socket path, and set it in the qemu command line as socket
path.
Quoted 2 lines
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
Quoted 8 lines
Quoted 1 line
-chardev socket,id=char0,path=$sock_path -netdev type=vhost-
user,id=mynet1,chardev=char0,vhostforce \
Quoted 1 line
-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.
Quoted 9 lines
Best regards
Benoît
Quoted 4 lines
Quoted 4 lines
Best regards
Benoît
A message that is not in the archive (sent off-list or not yet received): C37D651A908B024F974696C65296B57B0F362CC1-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org
Quoted 36 lines · Huawei
Quoted 36 lines
-----Original Message-----
From: Benoît Canet [mailto:[email protected]]
Sent: Wednesday, January 28, 2015 1:00 AM
To: Xie, Huawei
Cc: Benoît Canet; [email protected]
Subject: Re: vhost user examplesQuoted 8 lines · Huawei
Quoted 8 lines
-----Original Message-----
From: Benoît Canet [mailto:[email protected]]
Sent: Tuesday, January 27, 2015 10:11 PM
To: Xie, Huawei; [email protected]
Subject: vhost user examplesQuoted 8 lines
Quoted 6 lines
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
Quoted 1 line
the unix domain socket path, and set it in the qemu command line as socket
path.
Quoted 2 lines
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
Quoted 1 line
-chardev socket,id=char0,path=$sock_path -netdev type=vhost-
user,id=mynet1,chardev=char0,vhostforce \
Quoted 1 line
-device virtio-net-pci,mac=52:54:00:12:34:11,netdev=mynet1
Quoted 7 lines
Quoted 4 lines
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_nameparameter. 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
Quoted 10 lines
Quoted 10 lines
Best regards
Benoît
Quoted 4 lines
Quoted 4 lines
Best regards
Benoît