]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Always add 'console' matching the 'serial' device
authorJán Tomko <jtomko@redhat.com>
Wed, 13 Aug 2014 11:06:04 +0000 (13:06 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 4 Jun 2015 08:04:44 +0000 (10:04 +0200)
commit8728a78e904de7ddfa32b7761b40d6339fa15030
tree7d405464942f62edcec1521ccb86132dfc47b0a7
parent12b949dfb2d0ef2391f59df41f6d7db99191e99e
Always add 'console' matching the 'serial' device

We have been formatting the first serial device also
as a console device, but only if there were no other consoles.

If there is a <serial> device present in the XML, but no serial
<console>, or if there isn't any <console> at all but the domain
definition hasn't gone through a parse->format->parse round-trip,
the <console> device would not be formatted.

Change the code to always add the stub device for the first
serial device.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1089914
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-console-compat2.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-console-compat2.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c