diff options
author | Juan Quintela <quintela@redhat.com> | 2023-03-02 12:08:45 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-04-27 16:37:28 +0200 |
commit | b7b73122dd12b5fea63347253b428a9af66303c2 (patch) | |
tree | 127deca76a88c8b3350c92cb0db425dc476daf31 /migration/options.c | |
parent | 87c22901094a911e687e2ad014be868a9723c486 (diff) | |
download | qemu-b7b73122dd12b5fea63347253b428a9af66303c2.zip qemu-b7b73122dd12b5fea63347253b428a9af66303c2.tar.gz qemu-b7b73122dd12b5fea63347253b428a9af66303c2.tar.bz2 |
migration: Move block_cleanup_parameters() to options.c
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Diffstat (limited to 'migration/options.c')
-rw-r--r-- | migration/options.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c index 89508d9..82adbf3 100644 --- a/migration/options.c +++ b/migration/options.c @@ -600,6 +600,16 @@ void migrate_set_block_incremental(bool value) /* parameters helpers */ +void block_cleanup_parameters(MigrationState *s) +{ + if (s->must_remove_block_options) { + /* setting to false can never fail */ + migrate_cap_set(MIGRATION_CAPABILITY_BLOCK, false, &error_abort); + migrate_set_block_incremental(false); + s->must_remove_block_options = false; + } +} + AnnounceParameters *migrate_announce_params(void) { static AnnounceParameters ap; |