]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Add support for return-path migration capability
authorJiri Denemark <jdenemar@redhat.com>
Wed, 8 Dec 2021 15:19:26 +0000 (16:19 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 15 Dec 2021 09:44:50 +0000 (10:44 +0100)
commit877d1c24783755c3dba33f77cc57058b083913cf
tree9bcee9dd9f980f8500f59322a662af04e3717e87
parent4f9f3c5d1305a08a00135e475db45de9e9ff00b4
qemu: Add support for return-path migration capability

When return-path is enabled, QEMU on the source host won't report
completed migration until the destination QEMU sends a confirmation it
successfully loaded all data. Libvirt would detect such situation in the
Finish phase and report the error read from QEMU's stderr back to the
source, but using return-path could give use a bit better error
reporting with an earlier restart of vCPUs on the source.

The capability is only enabled when the connection between QEMU
processes on the source and destination hosts is bidirectional. In other
words, only when VIR_MIGRATE_TUNNELLED is not set, because our tunnel
only allows one-way communication from the source to the destination.

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