]> xenbits.xensource.com Git - libvirt.git/commit
qemu: set default name for SPICE agent channel when generating command
authorLaine Stump <laine@laine.org>
Fri, 30 Mar 2012 07:16:23 +0000 (03:16 -0400)
committerLaine Stump <laine@laine.org>
Fri, 30 Mar 2012 16:37:52 +0000 (12:37 -0400)
commit3269ee657c8f02b00518a8316401a6ea34c77dc3
treeb22e3c98fda3ee9c2000ee7e0008332e870cf65b
parent075c8518c6cf0459682ed9a0b79f0974cd6ecee3
qemu: set default name for SPICE agent channel when generating command

commit b0e2bb33 set a default value for the SPICE agent channel by
inserting it during parsing of the channel XML. That method of setting
a default is problematic because it makes a format/parse roundtrip
unclean, and experience with setting other values as a side effect of
parsing has led to headaches (e.g. automatically setting a MAC address
in the parser when one isn't specified in the input XML).

This patch does not revert commit b0e2bb33 (it will be reverted in a
separate patch) but adds the alternate implementation of simply
inserting the default value in the appropriate place on the qemu
commandline when no value is provided.
src/qemu/qemu_command.c