diff options
author | Juan Quintela <quintela@redhat.com> | 2023-05-03 20:10:36 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-05-05 01:04:32 +0200 |
commit | 3cba22c9ade988db239b03e5b77ffdfb16f353cf (patch) | |
tree | ddd9e00eb2c14771e29160c7737f9a70f3b68669 /migration/options.h | |
parent | f6b761bdbd8ba63cee7428d52fb6b46e4224ddab (diff) | |
download | qemu-3cba22c9ade988db239b03e5b77ffdfb16f353cf.zip qemu-3cba22c9ade988db239b03e5b77ffdfb16f353cf.tar.gz qemu-3cba22c9ade988db239b03e5b77ffdfb16f353cf.tar.bz2 |
migration: Fix block_bitmap_mapping migration
It is valid that params->has_block_bitmap_mapping is true and
params->block_bitmap_mapping is NULL. So we can't use the trick of
having a single function.
Move to two functions one for each value and the tests are fixed.
Fixes: b804b35b1c8a0edfd127ac20819c234be55ac7fc
migration: Create migrate_block_bitmap_mapping() function
Reported-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-Id: <20230503181036.14890-1-quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/options.h')
-rw-r--r-- | migration/options.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/options.h b/migration/options.h index 3c32286..09841d6 100644 --- a/migration/options.h +++ b/migration/options.h @@ -71,6 +71,8 @@ bool migrate_cap_set(int cap, bool value, Error **errp); /* parameters */ const BitmapMigrationNodeAliasList *migrate_block_bitmap_mapping(void); +bool migrate_has_block_bitmap_mapping(void); + bool migrate_block_incremental(void); uint32_t migrate_checkpoint_delay(void); int migrate_compress_level(void); |