]> xenbits.xensource.com Git - libvirt.git/commit
qemu: query QEMU for migration blockers before our own harcoded checks
authorEugenio Pérez <eperezma@redhat.com>
Wed, 20 Jul 2022 16:05:48 +0000 (18:05 +0200)
committerLaine Stump <laine@redhat.com>
Thu, 21 Jul 2022 04:58:06 +0000 (00:58 -0400)
commit156e99f686690855be4e45d9b8b3194191a8bc31
treeb5a1e3253a34d71f0b0922fca3f3671f55cccb38
parent7e52c4839fabac2d19c6f22c99142e992e3d898e
qemu: query QEMU for migration blockers before our own harcoded checks

Since QEMU 6.0, if QEMU knows that a migration would fail,
'query-migrate' will return an array of error strings describing the
migration blockers.  This can be used to check whether there are any
devices/conditions blocking migration.

This patch adds a call to this query at the top of
qemuMigrationSrcIsAllowed().

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/qemu/qemu_migration.c