Skip to content

Commit

Permalink
qapi: add dirty-bitmaps migration capability
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: John Snow <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Reviewed-by: Fam Zheng <[email protected]>
Message-id: [email protected]
  • Loading branch information
Vladimir Sementsov-Ogievskiy authored and jnsnow committed Mar 13, 2018
1 parent 4799502 commit 55efc8c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions migration/migration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions migration/migration.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 5 additions & 1 deletion qapi/migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,16 @@
#
# @x-multifd: Use more than one fd for migration (since 2.11)
#
# @dirty-bitmaps: If enabled, QEMU will migrate named dirty bitmaps.
# (since 2.12)
#
# Since: 1.2
##
{ 'enum': 'MigrationCapability',
'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks',
'compress', 'events', 'postcopy-ram', 'x-colo', 'release-ram',
'block', 'return-path', 'pause-before-switchover', 'x-multifd' ] }
'block', 'return-path', 'pause-before-switchover', 'x-multifd',
'dirty-bitmaps' ] }

##
# @MigrationCapabilityStatus:
Expand Down

0 comments on commit 55efc8c

Please sign in to comment.