]> 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)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 11 Jun 2013 12:11:46 +0000 (14:11 +0200)
commit6546017c50c104d0b9867137b64ab1f4a312e436
treef41f7dd6f44df7edc4a6bc852a0ec1b928d8754b
parent9313a6a7fc5dec0060fd32578ddb24db71360c13
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.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_process.c