diff options
author | Juan Quintela <quintela@redhat.com> | 2023-03-02 12:49:16 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-04-27 16:37:28 +0200 |
commit | b804b35b1c8a0edfd127ac20819c234be55ac7fc (patch) | |
tree | 2d2212b434781ee3424c0a5d3964d39443077cac /migration/options.c | |
parent | 1f2f366c328e851f302c3a97ce4ac18f86a64279 (diff) | |
download | qemu-b804b35b1c8a0edfd127ac20819c234be55ac7fc.zip qemu-b804b35b1c8a0edfd127ac20819c234be55ac7fc.tar.gz qemu-b804b35b1c8a0edfd127ac20819c234be55ac7fc.tar.bz2 |
migration: Create migrate_block_bitmap_mapping() function
Notice that we changed the test of ->has_block_bitmap_mapping
for the test that block_bitmap_mapping is not NULL.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
---
Make it return const (vladimir)
Diffstat (limited to 'migration/options.c')
-rw-r--r-- | migration/options.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c index 1aa9575..1840a3b 100644 --- a/migration/options.c +++ b/migration/options.c @@ -455,6 +455,13 @@ void qmp_migrate_set_capabilities(MigrationCapabilityStatusList *params, /* parameters */ +const BitmapMigrationNodeAliasList *migrate_block_bitmap_mapping(void) +{ + MigrationState *s = migrate_get_current(); + + return s->parameters.block_bitmap_mapping; +} + bool migrate_block_incremental(void) { MigrationState *s = migrate_get_current(); |