]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: migration: Use correct flag constant for enabling storage migration
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Jul 2021 12:17:57 +0000 (14:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 12 Jul 2021 14:34:44 +0000 (16:34 +0200)
commitf58349c9c6d26d98e7c8c195b1160d0c0cfff080
tree20fc5ce586371d160414ed2ce763e9c4b7f4dd5a
parent0ba4066819db8be489f1f2c69865303a94e69361
qemu: migration: Use correct flag constant for enabling storage migration

The 'storageMigration' flag is supposed to be true if storage migration
is requested, which is based on VIR_MIGRATE_NON_SHARED_DISK or
VIR_MIGRATE_NON_SHARED_INC flags. The assignment to the variable used
QEMU_MONITOR_MIGRATE_NON_SHARED_INC (0x04) instead of
VIR_MIGRATE_NON_SHARED_INC (0x80), caused libvirtd to skip the actual
copy of data.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1978526
Fixes: da69f4b2084bff140238e450e264d6036ebef898
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c