diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2018-03-13 15:34:00 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2018-03-13 17:05:45 -0400 |
commit | 55efc8c2ff8cf87abb895465fe5197b914c56ab4 (patch) | |
tree | f54f9adb5a600e1f367efe63820e658e5addc5fc /migration | |
parent | 4799502640e6a29d37dacb116a590fc03bacbb01 (diff) |
qapi: add dirty-bitmaps migration capability
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20180313180320.339796-7-vsementsov@virtuozzo.com
Diffstat (limited to 'migration')
-rw-r--r-- | migration/migration.c | 9 | ||||
-rw-r--r-- | migration/migration.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/migration/migration.c b/migration/migration.c index 90307f8ab5..e0aff5c814 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1565,6 +1565,15 @@ int migrate_decompress_threads(void) return s->parameters.decompress_threads; } +bool migrate_dirty_bitmaps(void) +{ + MigrationState *s; + + s = migrate_get_current(); + + return s->enabled_capabilities[MIGRATION_CAPABILITY_DIRTY_BITMAPS]; +} + bool migrate_use_events(void) { MigrationState *s; diff --git a/migration/migration.h b/migration/migration.h index 08c5d2ded1..da6bc37de8 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -205,6 +205,7 @@ bool migrate_postcopy(void); bool migrate_release_ram(void); bool migrate_postcopy_ram(void); bool migrate_zero_blocks(void); +bool migrate_dirty_bitmaps(void); bool migrate_auto_converge(void); bool migrate_use_multifd(void); |