]> git.proxmox.com Git - mirror_qemu.git/commit - migration/migration.c
migration: Add block-bitmap-mapping parameter
authorMax Reitz <mreitz@redhat.com>
Thu, 20 Aug 2020 15:07:23 +0000 (17:07 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 21 Aug 2020 13:56:09 +0000 (08:56 -0500)
commit31e4c354b38cd42a051ad030eb7779d5e7ee32fe
tree7fb7d5cbe98a7d9283491fae0b83ce31eaa112db
parent76bbbb2d8bcd635f787ddf448bad9c68f3299dee
migration: Add block-bitmap-mapping parameter

This migration parameter allows mapping block node names and bitmap
names to aliases for the purpose of block dirty bitmap migration.

This way, management tools can use different node and bitmap names on
the source and destination and pass the mapping of how bitmaps are to be
transferred to qemu (on the source, the destination, or even both with
arbitrary aliases in the migration stream).

While touching this code, fix a bug where bitmap names longer than 255
bytes would fail an assertion in qemu_put_counted_string().

Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200820150725.68687-2-mreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
migration/block-dirty-bitmap.c
migration/migration.c
migration/migration.h
monitor/hmp-cmds.c
qapi/migration.json