]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Abort failed post-copy when we haven't called Finish yet
authorJiri Denemark <jdenemar@redhat.com>
Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 7 Jun 2022 15:40:20 +0000 (17:40 +0200)
commitc2f6a6a7262ede1bef8299e9dae95e68edbf06c7
treec90e8c402ac80c6138a231e10b01da1df8909a45
parent88a59fbbf3b641788b0aa50f9d2879537b68fd1b
qemu: Abort failed post-copy when we haven't called Finish yet

When migration fails after it already switched to post-copy phase on the
source, but early enough that we haven't called Finish on the
destination yet, we know the vCPUs were not started on the destination
and the source host still has a complete state of the domain. Thus we
can just ignore the fact post-copy phase started and normally abort the
migration and resume vCPUs on the source.

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