aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-25 11:11:13 +0200
committerJuan Quintela <quintela@redhat.com>2023-10-31 08:44:33 +0100
commit0743f41fd293b033de289c52faa45d06a5b1d544 (patch)
treeff5159b0d0d26bd4d4608e66610ab3dd973e2bab /migration
parentf57e5a6ce50f10941399014c628db8713c2bc3f9 (diff)
downloadqemu-0743f41fd293b033de289c52faa45d06a5b1d544.zip
qemu-0743f41fd293b033de289c52faa45d06a5b1d544.tar.gz
qemu-0743f41fd293b033de289c52faa45d06a5b1d544.tar.bz2
migration: migration_rate_limit_reset() don't need the QEMUFile
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231025091117.6342-9-quintela@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/migration-stats.c2
-rw-r--r--migration/migration-stats.h4
-rw-r--r--migration/migration.c2
3 files changed, 3 insertions, 5 deletions
diff --git a/migration/migration-stats.c b/migration/migration-stats.c
index 4ae8c0c..f690b98 100644
--- a/migration/migration-stats.c
+++ b/migration/migration-stats.c
@@ -54,7 +54,7 @@ void migration_rate_set(uint64_t limit)
stat64_set(&mig_stats.rate_limit_max, limit / XFER_LIMIT_RATIO);
}
-void migration_rate_reset(QEMUFile *f)
+void migration_rate_reset(void)
{
stat64_set(&mig_stats.rate_limit_start, migration_transferred_bytes());
}
diff --git a/migration/migration-stats.h b/migration/migration-stats.h
index e3863bf..68f3939 100644
--- a/migration/migration-stats.h
+++ b/migration/migration-stats.h
@@ -120,10 +120,8 @@ uint64_t migration_rate_get(void);
* migration_rate_reset: Reset the rate limit counter.
*
* This is called when we know we start a new transfer cycle.
- *
- * @f: QEMUFile used for main migration channel
*/
-void migration_rate_reset(QEMUFile *f);
+void migration_rate_reset(void);
/**
* migration_rate_set: Set the maximum amount that can be transferred.
diff --git a/migration/migration.c b/migration/migration.c
index 04d4546..a25a2f3 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -2785,7 +2785,7 @@ static void migration_update_counters(MigrationState *s,
stat64_get(&mig_stats.dirty_bytes_last_sync) / expected_bw_per_ms;
}
- migration_rate_reset(s->to_dst_file);
+ migration_rate_reset();
update_iteration_initial_status(s);