]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix some corner cases in persistent migration
authorJiri Denemark <jdenemar@redhat.com>
Thu, 10 Sep 2015 22:14:59 +0000 (00:14 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 18 Sep 2015 12:40:55 +0000 (14:40 +0200)
commit79ccfec803ed939a32e569baa9a2b11022ec48b7
treeb6f5cc321bbb4312a13af6aa30274be56d6d31bb
parentc641d5508341352926e7b52a7746c9dd8acb9283
qemu: Fix some corner cases in persistent migration

When persistently migrating a domain to a destination host where the
same domain already exists (i.e., it is persistent and shutdown at the
destination), we would happily throw away the original persistent
definition without properly freeing it. And when updating the definition
fails for some reason we don't properly revert to the original state
leaving the domain broken.

In addition to fixing these issues, the patch also makes sure the domain
definition parsed from a migration cookie is either used or freed.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c