]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix NBD migration with default listenAddress
authorJiri Denemark <jdenemar@redhat.com>
Thu, 7 Jan 2016 23:07:37 +0000 (00:07 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 8 Jan 2016 09:39:20 +0000 (10:39 +0100)
commitf87668b70eb258b6b1432bca9f8ec50ae33f9a0a
treecbbb2f4f68e61a75b3d4d7361f6524fa7197d52e
parentaa7735e9d10d88d79a71b28a87352088c9263810
qemu: Fix NBD migration with default listenAddress

My commit 674afcb09e3d33500cfbbcf870ebf92cb99ecfa3 moved computing the
default listen address from qemuMigrationPrepareAny to
qemuMigrationPrepareIncoming. However, I didn't notice listenAddress was
later passed to qemuMigrationStartNBDServer. Thus, it would be called
with the original value of listenAddress (NULL).

Let's add the updated listen address to qemuProcessIncomingDef and use
it when starting NBD servers.

Reported-by: Michael Chapman <mike@very.puzzling.org>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h