]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildHostNetStr: use type_sep earlier
authorJán Tomko <jtomko@redhat.com>
Fri, 14 Oct 2016 13:16:46 +0000 (15:16 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 21 Oct 2016 13:55:49 +0000 (15:55 +0200)
commitc70c56ded02ca4a4d293c8a0bfd08d26196d27cf
tree2578a317481d2317294ee1af80d2de8337621e20
parentbdaf5e80982e65800740346788061ccd7a07ae60
qemuBuildHostNetStr: use type_sep earlier

When hotplugging networks with ancient QEMUs not supporting
QEMU_CAPS_NETDEV, we use space instead of a comma as the separator
between the network type and other options.

Except for "user", all the network types pass other options
and use up the first separator by the time we get to the section
that adds the alias (or vlan for QEMUs without CAPS_NETDEV).

Since the alias/vlan is mandatory, convert all preceding code to add
the separator at the end, removing the need to rewrite type_sep for
all types but NET_TYPE_USER.
src/qemu/qemu_command.c