In the last few days, Open-vSwitch 2.4 was released.
Release notes can be found here.
Since i’m interested in working with vhost user space interfaces, but with the file descriptor method, rather than cuse, I want clarify some changes from my previous post. I would like to update regarding the needed configuration.
No need to use any patches anymore. Just download the latest tarball. Follow the instructions in install.DPDK to build the dpdk & open-vswitch. Everything is working straight out of the box.
VM configuration file
If using dpdkvhostuser type ports, there is no need for the Qemu wrapper. This simplifies the VM xml file. The wrapper should be used when using Cuse.
No need to pass special qemu arguments. This is a security breach: bypassing libvirt with direct arguments to qemu. Libvirt is now supporting vhostuser, and hugepages backend sharing. So instead of Qemu:Args arguments, use new arguments follows:
<memoryBacking> <hugepages> <page size='1024' unit='MiB'/> </hugepages> </memoryBacking> <cpu> <numa> <cell id='0' cpus='0-1' memory='3064' unit='MiB' memAccess='shared'/> </numa> </cpu>
<interface type='vhostuser'> <source type='unix' path='/var/openvswitch/dpdkvhost0.sock' mode='client'/> <mac address='52:54:00:3b:83:1a'/> <model type='virtio'/> </interface>