]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Always restore post-copy migration job on reconnect
authorJiri Denemark <jdenemar@redhat.com>
Fri, 18 Nov 2022 15:19:16 +0000 (16:19 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 21 Nov 2022 17:17:44 +0000 (18:17 +0100)
commitbf77578c9c12450296174118a17cbd338e5f54e0
tree91521169d050a7a79347044b2eec049ed90bd70b
parentb09441b1c5a9f3d705e939f9b5f4a2bcbcaec4c3
qemu: Always restore post-copy migration job on reconnect

We need the restored job even in case the migration already finished
even though we will stop it just a few lines below as the functions we
call in between require an existing migration job.

This fixes a crash on reconnect when post-copy migration finished while
the daemon was not running.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_process.c