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 /hw/misc/sifive_u_prci.c | |
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 'hw/misc/sifive_u_prci.c')
0 files changed, 0 insertions, 0 deletions