libvirt/src/libxl
Jim Fehlig f830674bf3 libxl: fix leaking of allocated migration ports
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.
2016-10-24 19:42:10 -06:00
..
libvirtd_libxl.aug libxl: keepalive messages support 2016-02-09 21:14:12 -07:00
libxl_capabilities.c libxl: describe host cpu features based on hwcaps 2016-09-12 12:49:03 +02:00
libxl_capabilities.h libxl: implement connectGetDomainCapabilities 2016-06-13 14:13:17 -06:00
libxl_conf.c Introduce virDomainChrSourceDefNew for virDomainChrDefPtr 2016-10-21 14:03:36 -04:00
libxl_conf.h libxl: channels support 2016-09-27 15:15:03 -06:00
libxl_domain.c Introduce virDomainChrSourceDefNew for virDomainChrDefPtr 2016-10-21 14:03:36 -04:00
libxl_domain.h libxl: add a flag to mark guests as tainted by a hook 2016-08-02 14:20:31 +02:00
libxl_driver.c Introduce virDomainChrSourceDefNew for virDomainChrDefPtr 2016-10-21 14:03:36 -04:00
libxl_driver.h libxl: Use standard format for source file copyright notice 2013-09-03 23:53:48 -06:00
libxl_migration.c libxl: fix leaking of allocated migration ports 2016-10-24 19:42:10 -06:00
libxl_migration.h libxl: support VIR_MIGRATE_PERSIST_DEST migration flag 2016-09-21 15:42:41 -06:00
libxl.conf libxl: keepalive messages support 2016-02-09 21:14:12 -07:00
test_libvirtd_libxl.aug.in libxl: keepalive messages support 2016-02-09 21:14:12 -07:00