From: Ján Tomko Date: Thu, 31 Oct 2013 12:19:29 +0000 (+0100) Subject: Use a port from the migration range for NBD as well X-Git-Tag: v1.1.4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e1e16aa8d4238241a1806cb9bdb3b9ad60db777;p=thirdparty%2Flibvirt.git Use a port from the migration range for NBD as well Instead of using a port from the remote display range. https://bugzilla.redhat.com/show_bug.cgi?id=1025699 --- diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index cb596209fa..4f35a7a3e7 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -1115,7 +1115,7 @@ qemuMigrationStartNBDServer(virQEMUDriverPtr driver, goto cleanup; if (!port && - ((virPortAllocatorAcquire(driver->remotePorts, &port) < 0) || + ((virPortAllocatorAcquire(driver->migrationPorts, &port) < 0) || (qemuMonitorNBDServerStart(priv->mon, listenAddr, port) < 0))) { qemuDomainObjExitMonitor(driver, vm); goto cleanup;