]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Avoid assigning unavailable migration ports
authorWang Yufei <james.wangyufei@huawei.com>
Fri, 11 Oct 2013 03:27:13 +0000 (11:27 +0800)
committerJán Tomko <jtomko@redhat.com>
Thu, 9 Jan 2014 13:53:49 +0000 (14:53 +0100)
commit97e7e2660d2507a3e11b6f8958221636a1a6b4ea
tree0d48416670edcf31f0f330701f6b59e6b6a9b726
parent5904ba60159ce67826f301e78103191600a07600
qemu: Avoid assigning unavailable migration ports

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

When we migrate vms concurrently, there's a chance that libvirtd on
destination assigns the same port for different migrations, which will
lead to migration failure during prepare phase on destination. So we use
virPortAllocator here to solve the problem.

Signed-off-by: Wang Yufei <james.wangyufei@huawei.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
(cherry picked from commit 0196845d3abd0d914cf11f7ad6c19df8b47c32ed)

Conflicts:
  missing support for changing the migration listen address
src/qemu/qemu_migration.c
src/qemu/qemu_command.h
src/qemu/qemu_conf.h
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c