mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration: We don't need the field rate_limit_used anymore
Since previous commit, we calculate how much data we have send with migration_transferred_bytes() so no need to maintain this counter and remember to always update it. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20230515195709.63843-10-quintela@redhat.com>
This commit is contained in:
parent
813cd61669
commit
bd7ceaf6d5
4 changed files with 0 additions and 25 deletions
|
@ -431,7 +431,6 @@ static int multifd_send_pages(QEMUFile *f)
|
|||
multifd_send_state->pages = p->pages;
|
||||
p->pages = pages;
|
||||
transferred = ((uint64_t) pages->num) * p->page_size + p->packet_len;
|
||||
migration_rate_account(transferred);
|
||||
qemu_mutex_unlock(&p->mutex);
|
||||
stat64_add(&mig_stats.transferred, transferred);
|
||||
stat64_add(&mig_stats.multifd_bytes, transferred);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue