]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationDstPrepareAny: Parse cookie before adding domain onto list
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Nov 2018 10:31:00 +0000 (11:31 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Nov 2018 15:25:50 +0000 (16:25 +0100)
commitee32939fff30804ae6ef33161b8c3f3f19063493
tree64d51ae55775b4eca9a8eb9b142339988cbca665
parent1a07aca24a95cbd3d75359132c0d57d970909e7e
qemuMigrationDstPrepareAny: Parse cookie before adding domain onto list

There are some checks done when parsing a migration cookie. For
instance, one of the checks ensures that the domain is not being
migrated onto the same host. If that is the case, then we are in
big trouble because the @vm is the same domain object used by
source and it has some jobs sets and everything so recovering
from failed cookie parsing would be needlessly hard.

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