aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-02 10:55:30 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-24 15:01:46 +0200
commit5390adec03a7d8bc6bcf5887f726b0ddaeb90681 (patch)
treed13da14b53ae3665230cc98086b67008132f25cd
parent1dfc4b9e19bcf1ad41a1be9ac82db35b9647c3c1 (diff)
downloadqemu-5390adec03a7d8bc6bcf5887f726b0ddaeb90681.zip
qemu-5390adec03a7d8bc6bcf5887f726b0ddaeb90681.tar.gz
qemu-5390adec03a7d8bc6bcf5887f726b0ddaeb90681.tar.bz2
migration: Use migrate_max_postcopy_bandwidth()
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
-rw-r--r--migration/migration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/migration.c b/migration/migration.c
index f19ab59..4a9e531 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -3795,7 +3795,7 @@ void migrate_fd_connect(MigrationState *s, Error *error_in)
if (resume) {
/* This is a resumed migration */
- rate_limit = s->parameters.max_postcopy_bandwidth /
+ rate_limit = migrate_max_postcopy_bandwidth() /
XFER_LIMIT_RATIO;
} else {
/* This is a fresh new migration */