mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 01:43:39 +00:00
migration: Use migrate_max_postcopy_bandwidth()
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
This commit is contained in:
parent
1dfc4b9e19
commit
5390adec03
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue