mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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
This commit is contained in:
parent
87176d0ce9
commit
3e1e16aa8d
@ -1115,7 +1115,7 @@ qemuMigrationStartNBDServer(virQEMUDriverPtr driver,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (!port &&
|
if (!port &&
|
||||||
((virPortAllocatorAcquire(driver->remotePorts, &port) < 0) ||
|
((virPortAllocatorAcquire(driver->migrationPorts, &port) < 0) ||
|
||||||
(qemuMonitorNBDServerStart(priv->mon, listenAddr, port) < 0))) {
|
(qemuMonitorNBDServerStart(priv->mon, listenAddr, port) < 0))) {
|
||||||
qemuDomainObjExitMonitor(driver, vm);
|
qemuDomainObjExitMonitor(driver, vm);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user