]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Release nbd port from migrationPorts instead of remotePorts
authorweiwei li <weiweili821@gmail.com>
Fri, 31 Oct 2014 08:16:22 +0000 (16:16 +0800)
committerJán Tomko <jtomko@redhat.com>
Fri, 31 Oct 2014 11:20:06 +0000 (12:20 +0100)
commitbe598c5ff84656d3498b950d473fafe5b86f87b4
treeb900b244403563be08e950690222298fd51dfff7
parent720be2eb5f0216564d158dca99c466fac2c16a53
qemu: Release nbd port from migrationPorts instead of remotePorts

commit 3e1e16aa8d4238241a1806cb9bdb3b9ad60db777 (Use a port from the
migration range for NBD as well) changed ndb port allocation from
remotePorts to migrationPorts, but did not change the port releasing
process, which makes an error when migrating several times (above 64):
error: internal error: Unable to find an unused port in range
'migration' (49152-49215)

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

Signed-off-by: Weiwei Li <nuonuoli@tencent.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_process.c