Try to migrate them always when they are not present in the destination
image. While this has no change if they are present and on shared
filesystem it does allow migrating them when the filesystem is not
shared but we're not migrating storage. This is a special case for qcow2
overlay with data_file feature.

The code uses the existing logic for offering and accepting bitmaps,
just fixed a bug and enables the code for all kinds of migration.

See 5/5 for more in-depth description.

Peter Krempa (5):
  qemublocktest: Iterate all nodenames in 'testQemuDetectBitmaps'
  qemu: monitor: Detect list of bitmaps from 'qcow2' format specific
    data
  qemuMigrationDstPrepareAnyBlockDirtyBitmaps: Fix check for existing
    bitmaps
  qemu: migration: Always offer block dirty bitmaps during migration
  qemuMigrationDstPrepareAnyBlockDirtyBitmaps: Always consider offered
    bitmaps

 src/qemu/qemu_migration.c                     | 54 ++++++-------------
 src/qemu/qemu_monitor.h                       |  4 ++
 src/qemu/qemu_monitor_json.c                  | 17 ++++++
 tests/qemublocktest.c                         | 35 ++++++------
 tests/qemublocktestdata/bitmap/basic.out      |  1 +
 tests/qemublocktestdata/bitmap/empty.out      |  1 +
 .../bitmap/snapshots-internal.out             |  7 +++
 tests/qemublocktestdata/bitmap/snapshots.out  | 10 ++++
 tests/qemublocktestdata/bitmap/synthetic.out  |  9 ++++
 9 files changed, 86 insertions(+), 52 deletions(-)

-- 
2.52.0

Reply via email to