mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-28 08:35:22 +00:00
f830674bf3
Although the migration port is immediately released in the finish phase of migration, it was never set in the domain private object when allocated in the prepare phase. So libxlDomainMigrationFinish() always released a 0-initialized migrationPort, leaking any allocated port. After enough migrations to exhaust the migration port pool, migration would fail with error: internal error: Unable to find an unused port in range 'migration' (49152-49216) Fix it by setting libxlDomainObjPrivate->migrationPort to the port allocated in the prepare phase. While at it, also fix leaking an allocated port if the prepare phase fails. |
||
---|---|---|
.. | ||
libvirtd_libxl.aug | ||
libxl_capabilities.c | ||
libxl_capabilities.h | ||
libxl_conf.c | ||
libxl_conf.h | ||
libxl_domain.c | ||
libxl_domain.h | ||
libxl_driver.c | ||
libxl_driver.h | ||
libxl_migration.c | ||
libxl_migration.h | ||
libxl.conf | ||
test_libvirtd_libxl.aug.in |