]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Check remote caps when enabling always-on capabilities
authorJiri Denemark <jdenemar@redhat.com>
Fri, 6 Apr 2018 12:02:04 +0000 (14:02 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Apr 2018 08:46:23 +0000 (10:46 +0200)
commit9d7321bde9e4c1560eae84e0876a98caa9d2904a
tree83fcc2ee067d201906f3d198c909012baa42baee
parent40ced93b018146e477b040a3cfc3799ae111a0b2
qemu: Check remote caps when enabling always-on capabilities

When an always-on migration capability is supposed to be enabled on both
sides of migration, each side can only enable the feature if it is
enabled by the other side.

Thus the source host sends a list of supported migration capabilities in
the migration cookie generated in the Begin phase. The destination host
consumes the list in the Prepare phase and decides what capabilities can
be enabled when starting a QEMU process for incoming migration. Once
done the destination sends the list of supported capabilities back to
the source where it is used during the Perform phase to determine what
capabilities can be automatically enabled.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_migration_params.c
src/qemu/qemu_migration_params.h