summary refs log tree commit diff stats
path: root/migration/qemu-file.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-25 11:11:15 +0200
committerJuan Quintela <quintela@redhat.com>2023-10-31 08:44:33 +0100
commit897fd8bdce6c0939e0c35ae8fda4af09b5e5fb40 (patch)
tree2132e2cd34764ab06b40161445c9679257071f78 /migration/qemu-file.c
parentfc55cf318a19c385c25843865788ffdd05cde607 (diff)
downloadfocaccia-qemu-897fd8bdce6c0939e0c35ae8fda4af09b5e5fb40.tar.gz
focaccia-qemu-897fd8bdce6c0939e0c35ae8fda4af09b5e5fb40.zip
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>
Diffstat (limited to 'migration/qemu-file.c')
0 files changed, 0 insertions, 0 deletions