]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: format server interface without a listen address
authorJán Tomko <jtomko@redhat.com>
Tue, 20 Jan 2015 12:34:10 +0000 (13:34 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 21 Jan 2015 12:22:36 +0000 (13:22 +0100)
commit280ece4af95727eac49baaa48eb1a2fc36fad4ff
treea8cf662a7deb717ac08194c091c2bfe802abb2e6
parente274d5882eeda2e42106a8c397d2222b913b0843
qemu: format server interface without a listen address

https://bugzilla.redhat.com/show_bug.cgi?id=1130390

The listen address is not mandatory for <interface type='server'>
but when it's not specified, we've been formatting it as:
-netdev socket,listen=(null):5558,id=hostnet0
which failed with:
Device 'socket' could not be initialized

Omit the address completely and only format the port in the listen
attribute.

Also fix the schema to allow specifying a model.
docs/schemas/domaincommon.rng
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-net-vhostuser.args
tests/qemuxml2argvdata/qemuxml2argv-net-vhostuser.xml