aboutsummaryrefslogtreecommitdiff
path: root/migration/options.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-02 12:10:33 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-27 16:37:28 +0200
commitb1a8795654561b23eaf5bb134b61e5b23545046d (patch)
tree69b91545115cd79de973d8bb7d2ccdae4c9893e6 /migration/options.c
parentb7b73122dd12b5fea63347253b428a9af66303c2 (diff)
downloadqemu-b1a8795654561b23eaf5bb134b61e5b23545046d.zip
qemu-b1a8795654561b23eaf5bb134b61e5b23545046d.tar.gz
qemu-b1a8795654561b23eaf5bb134b61e5b23545046d.tar.bz2
migration: Remove MigrationState from block_cleanup_parameters()
This makes the function more regular with everything else. 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/migration/options.c b/migration/options.c
index 82adbf3..da99c62 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -600,8 +600,10 @@ void migrate_set_block_incremental(bool value)
/* parameters helpers */
-void block_cleanup_parameters(MigrationState *s)
+void block_cleanup_parameters(void)
{
+ MigrationState *s = migrate_get_current();
+
if (s->must_remove_block_options) {
/* setting to false can never fail */
migrate_cap_set(MIGRATION_CAPABILITY_BLOCK, false, &error_abort);