]> xenbits.xensource.com Git - libvirt.git/commitdiff
Use a port from the migration range for NBD as well
authorJán Tomko <jtomko@redhat.com>
Thu, 31 Oct 2013 12:19:29 +0000 (13:19 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 1 Nov 2013 11:07:12 +0000 (12:07 +0100)
Instead of using a port from the remote display range.

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

src/qemu/qemu_migration.c

index cb596209faec7dbd1235a18f3f8519bb3ff93810..4f35a7a3e7db84ae086a8b01818af26d78aa032c 100644 (file)
@@ -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;