]> xenbits.xensource.com Git - libvirt.git/commit
qemuMigrationSrcRun: Sanitize setting of cookieFlags and migrate_flags on storage...
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Apr 2021 14:59:38 +0000 (16:59 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Apr 2021 15:22:30 +0000 (17:22 +0200)
commitda69f4b2084bff140238e450e264d6036ebef898
tree3cdedf60a516826a4cfa290a1231c00ff970c8cb
parenta9c1d5657da55da9ca359e773105478ab93aa1ca
qemuMigrationSrcRun: Sanitize setting of cookieFlags and migrate_flags on storage migration

Base the decision on the main API flags (VIR_MIGRATE_NON_SHARED_DISK,
QEMU_MONITOR_MIGRATE_NON_SHARED_INC) via a boolean 'storageMigration'
rather than juggling everything trhough 'migration_flags'.

After this patch 'migration_flags' is updated to contain the legacy
storage migration flags only when we'll be about to use it rather than
setting it and then resetting it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c