]> git.proxmox.com Git - mirror_qemu.git/commit - migration/migration.c
migration: Use migration_transferred_bytes()
authorJuan Quintela <quintela@redhat.com>
Wed, 25 Oct 2023 09:11:15 +0000 (11:11 +0200)
committerJuan Quintela <quintela@redhat.com>
Tue, 31 Oct 2023 07:44:33 +0000 (08:44 +0100)
commit897fd8bdce6c0939e0c35ae8fda4af09b5e5fb40
tree2132e2cd34764ab06b40161445c9679257071f78
parentfc55cf318a19c385c25843865788ffdd05cde607
migration: Use migration_transferred_bytes()

There are only two differnces with the old value:

- the amount of QEMUFile that hasn't yet been flushed.  It can be
  discussed what is more exact, the new or the old one.
- the amount of transferred bytes that we forgot to account for (the
  newer is better, i.e. exact).

Notice that this two values are used to:
a - present to the user
b - calculate the rate_limit

So a few KB here and there is not going to make a difference.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231025091117.6342-11-quintela@redhat.com>
migration/migration.c
migration/ram.c