diff options
author | Juan Quintela <quintela@redhat.com> | 2023-03-02 00:49:47 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-04-24 15:01:46 +0200 |
commit | 6f8be7080a1f79bf3832cf798fba1697c409c597 (patch) | |
tree | 2ee1b0842f06ef3f658d77bfaf470c3c065a7e63 /migration/migration.c | |
parent | 5390adec03a7d8bc6bcf5887f726b0ddaeb90681 (diff) | |
download | qemu-6f8be7080a1f79bf3832cf798fba1697c409c597.zip qemu-6f8be7080a1f79bf3832cf798fba1697c409c597.tar.gz qemu-6f8be7080a1f79bf3832cf798fba1697c409c597.tar.bz2 |
migration: Move migrate_use_block_incremental() to option.c
To be consistent with every other parameter, rename to
migrate_block_incremental().
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Diffstat (limited to 'migration/migration.c')
-rw-r--r-- | migration/migration.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/migration/migration.c b/migration/migration.c index 4a9e531..5ab1e48 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -2157,7 +2157,7 @@ static bool migrate_prepare(MigrationState *s, bool blk, bool blk_inc, error_setg(errp, "No disk migration is required in COLO mode"); return false; } - if (migrate_block() || migrate_use_block_incremental()) { + if (migrate_block() || migrate_block_incremental()) { error_setg(errp, "Command options are incompatible with " "current migration capabilities"); return false; @@ -2273,15 +2273,6 @@ int migrate_use_tls(void) return s->parameters.tls_creds && *s->parameters.tls_creds; } -bool migrate_use_block_incremental(void) -{ - MigrationState *s; - - s = migrate_get_current(); - - return s->parameters.block_incremental; -} - /* migration thread support */ /* * Something bad happened to the RP stream, mark an error |