Re: [vpp-dev] Creating qemu VMs using memif instead of vhostuser #vpp-memif #vpp #dpdk #vhost

2021-04-10 Thread Damjan Marion via lists.fd.io


> On 10.04.2021., at 09:14, abhinav.mishra via lists.fd.io 
>  wrote:
> 
> Hi everyone,
> 
> I am wondering if we can create VMs using memifs instead of normal vhostuser 
> interfaces. 
> Normal qemu command for creating virtio ifs in VM looks like :
> 
> create vhost-user socket /run/vpp/sock1.sock
> 
> -chardev socket,id=char1,path=/var/run/vpp/sock1.sock,server -netdev 
> type=vhost-user,id=net1,chardev=char1,vhostforce -device 
> virtio-net-pci,mac=,netdev=net1,mrg_rxbuf=off
> 
> Now this works flawlessly, but is there a way to create virtio ifs for VM 
> using memif concept of master and slave ?

No, memif is built for different purpose and it doesn’t support VM use case.

— 
Damjan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19171): https://lists.fd.io/g/vpp-dev/message/19171
Mute This Topic: https://lists.fd.io/mt/81988051/21656
Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
Mute #vpp-memif:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-memif
Mute #vhost:https://lists.fd.io/g/vpp-dev/mutehashtag/vhost
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Creating qemu VMs using memif instead of vhostuser #vpp-memif #vpp #dpdk #vhost

2021-04-10 Thread abhinav.mishra via lists.fd.io
Hi everyone,

I am wondering if we can create VMs using memifs instead of normal vhostuser 
interfaces.
Normal qemu command for creating virtio ifs in VM looks like :

*create vhost-user socket /run/vpp/sock1.sock
*
*-chardev socket,id=char1,path=/var/run/vpp/sock1.sock,server -netdev 
type=vhost-user,id=net1,chardev=char1,vhostforce -device virtio-net-pci* *,* 
*mac=,netdev=net1,mrg_rxbuf=off*

Now this works flawlessly, but is there a way to create virtio ifs for VM using 
memif concept of master and slave ?

Thanks,
Abhinav Mishra

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19170): https://lists.fd.io/g/vpp-dev/message/19170
Mute This Topic: https://lists.fd.io/mt/81988051/21656
Mute #vhost:https://lists.fd.io/g/vpp-dev/mutehashtag/vhost
Mute #vpp-memif:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-memif
Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-