]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: resume lock process after failed migration
authorJim Fehlig <jfehlig@suse.com>
Wed, 24 Jan 2018 21:23:04 +0000 (14:23 -0700)
committerJim Fehlig <jfehlig@suse.com>
Thu, 25 Jan 2018 16:22:14 +0000 (09:22 -0700)
commit0c710a37ea265dc7dfa0ebcebf1e21e4c6b2ea21
tree9957e4ba81a20c8370eedde3a622eee532115c0a
parent47bb586c7533fc9f8366d078b3db26e791aaadf2
libxl: resume lock process after failed migration

During migration, the lock process is paused in the perform phase
but not resumed if there is a subsequent failure, leaving the locked
resource unprotected.

The perform phase itself can fail, in which case the lock process
should be resumed before returning from perform. The finish phase
could also fail on the destination host, in which case the migration
is canceled in the confirm phase and the VM is resumed. The lock
process needs to be resumed there as well.

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