]> 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)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 18 Oct 2013 14:34:09 +0000 (16:34 +0200)
commit0196845d3abd0d914cf11f7ad6c19df8b47c32ed
tree946e3759bd397dcb3e4b646eb259a87fe3f2b637
parent9b3c8bd4f86c8a6125e2d5597cc5a6fc4e4ce43a
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>
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