]> xenbits.xensource.com Git - libvirt.git/commit
qemu: set default vhost-user ifname
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Dec 2016 09:33:28 +0000 (10:33 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Jan 2017 14:42:12 +0000 (15:42 +0100)
commit57b5e27d3d74f8dbb77ac909b405d99d555eca46
tree8ff441f97da3b4c6fb1f340967d5caad9a19fa45
parent1d4fd2dd0fe0ebde9a9c61ebc4326b4181092d58
qemu: set default vhost-user ifname

Based on work of Mehdi Abaakouk <sileht@sileht.net>.

When parsing vhost-user interface XML and no ifname is found we
can try to fill it in in post parse callback. The way this works
is we try to make up interface name from given socket path and
then ask openvswitch whether it knows the interface.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/qemu/qemu_domain.c
src/util/virnetdevopenvswitch.c
src/util/virnetdevopenvswitch.h
tests/Makefile.am
tests/qemuxml2argvmock.c
tests/qemuxml2xmlmock.c [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-net-vhostuser.xml
tests/qemuxml2xmltest.c