Skip to content

Commit

Permalink
Add 'auto-converge' migration capability
Browse files Browse the repository at this point in the history
The auto-converge migration capability allows the user to specify if they
choose live migration seqeunce to automatically detect and force convergence.

Signed-off-by: Chegu Vinod <chegu_vinod@hp.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
  • Loading branch information
Chegu Vinod authored and Juan Quintela committed Jul 12, 2013
1 parent 3c02270 commit bde1e2e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/migration/migration.h
Expand Up @@ -125,6 +125,8 @@ void migrate_del_blocker(Error *reason);

bool migrate_rdma_pin_all(void);

bool migrate_auto_converge(void);

int xbzrle_encode_buffer(uint8_t *old_buf, uint8_t *new_buf, int slen,
uint8_t *dst, int dlen);
int xbzrle_decode_buffer(uint8_t *src, int slen, uint8_t *dst, int dlen);
Expand Down
9 changes: 9 additions & 0 deletions migration.c
Expand Up @@ -484,6 +484,15 @@ bool migrate_rdma_pin_all(void)
return s->enabled_capabilities[MIGRATION_CAPABILITY_X_RDMA_PIN_ALL];
}

bool migrate_auto_converge(void)
{
MigrationState *s;

s = migrate_get_current();

return s->enabled_capabilities[MIGRATION_CAPABILITY_AUTO_CONVERGE];
}

int migrate_use_xbzrle(void)
{
MigrationState *s;
Expand Down
2 changes: 1 addition & 1 deletion qapi-schema.json
Expand Up @@ -616,7 +616,7 @@
# Since: 1.2
##
{ 'enum': 'MigrationCapability',
'data': ['xbzrle', 'x-rdma-pin-all'] }
'data': ['xbzrle', 'x-rdma-pin-all', 'auto-converge'] }

##
# @MigrationCapabilityStatus
Expand Down

0 comments on commit bde1e2e

Please sign in to comment.