]> 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:25:35 +0000 (14:25 +0100)
commit1359673e4226f59f16e79edf720a043b233f1313
tree0b6674114507d4193ee6e12f8c3644f5b6a62fba
parent05700f604540bd9eee2ba12873d3424f77d2e26a
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 WebSockets and listen address
  virAsprintf doesn't report OOM

src/qemu/qemu_command.h
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
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