]> xenbits.xensource.com Git - libvirt.git/commit
Set default name for SPICE agent channel
authorChristophe Fergeau <cfergeau@redhat.com>
Fri, 23 Mar 2012 10:04:13 +0000 (11:04 +0100)
committerChristophe Fergeau <cfergeau@redhat.com>
Wed, 28 Mar 2012 16:33:32 +0000 (18:33 +0200)
commitb0e2bb33d82fdd186c15dafae105c0383169f02e
treed7d97ed66d2c74d1f59fad62b0cef0a2598d40d4
parent03ca3317a66b7ae5a1a6323487cad99b506cb714
Set default name for SPICE agent channel

libvirt documentation for channels with type 'spicevmc' says that the
'target' child node has:
"an optional attribute name controls how the guest will have access
 to the channel, and defaults to name='com.redhat.spice.0'."

However, this default value is never set in libvirt code base,
there's only a check in qemu_command.c to error out if the name
attribute doesn't have the expected value (if it's set).

This commit sets a default target name for spicevmc channels during
the domain configuration parsing so that the code agrees with the
documentation.
src/conf/domain_conf.c