]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_migrate: Dispose listen address if set from config
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Jun 2013 15:51:46 +0000 (17:51 +0200)
committerCole Robinson <crobinso@redhat.com>
Thu, 11 Jul 2013 21:47:18 +0000 (17:47 -0400)
commitca305a756d467de09bc51608800e089ced0cca55
tree131bbfdc8d5d7c06b124458ac4d25bcdeff04a8c
parent3b6bc5eda68c4105e07674411ec9e530cd7f000e
qemu_migrate: Dispose listen address if set from config

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

As of d7f9d827531bc843b7c5aa9d3e8c08738a1de248 we copy the listen
address from the qemu.conf config file in case none has been provided
via XML. But later, when migrating, we should not include such listen
address in the migratable XML as it is something autogenerated, not
requested by user. Moreover, the binding to the listen address will
likely fail, unless the address is '0.0.0.0' or its IPv6 equivalent.
This patch introduces a new boolean attribute to virDomainGraphicsListenDef
to distinguish autofilled listen addresses. However, we must keep the
attribute over libvirtd restarts, so it must be kept within status XML.

(cherry picked from commit 6546017c50c104d0b9867137b64ab1f4a312e436)
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_process.c