]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: start domain paused on migration dst
authorJim Fehlig <jfehlig@suse.com>
Thu, 13 Nov 2014 00:15:37 +0000 (17:15 -0700)
committerJim Fehlig <jfehlig@suse.com>
Fri, 21 Nov 2014 20:11:47 +0000 (13:11 -0700)
commit60386825646c24fbcb9160306e298ed6f52f3f02
treea5379f2afef74cc6f21acfb71c94159282877c12
parenta1f389515c7995ce0412f5b2413e5ec3dba4ef98
libxl: start domain paused on migration dst

During the perform phase of migration, the domain is started on
the dst host in a running state if VIR_MIGRATE_PAUSED flag is not
specified.  In the finish phase, the domain is also unpaused if
VIR_MIGRATE_PAUSED flag is unset.  I've noticed this second unpause
fails if the domain was already unpaused following the perform phase.

This patch changes the perform phase to always start the domain
paused, and defers unpausing, if requested, to the finish phase.
Unpausing should occur in the finish phase anyhow, where the domain
can be properly destroyed if the perform phase fails and migration
is cancelled.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_migration.c