]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: don't try to query QEMU about migration blockers during offline migration
authorLaine Stump <laine@redhat.com>
Thu, 21 Jul 2022 05:56:11 +0000 (01:56 -0400)
committerLaine Stump <laine@redhat.com>
Thu, 21 Jul 2022 15:12:44 +0000 (11:12 -0400)
commit2dd5587f1dc8e2cf4e6e0a4e4cf576b8183b33cd
tree8679d6bff0d4ce15f03411b08e6faf0ce08da58a
parent62627524607f214e724a48fcac575737f49a271c
qemu: don't try to query QEMU about migration blockers during offline migration

The new code that queries QEMU about migration blockers was put at the
top of qemuMigrationSrcIsAllowed(), but that function can also be
called in the case of offline migration (ie when the domain is
inactive / QEMU isn't running). This check should have been put inside
the "if (!(flags & VIR_MIGRATE_OFFLINE))" conditional, so let's move
it there.

Fixes: 156e99f686690855be4e45d9b8b3194191a8bc31
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c