aboutsummaryrefslogtreecommitdiff
path: root/migration/migration-stats.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-25 11:11:07 +0200
committerJuan Quintela <quintela@redhat.com>2023-10-31 08:44:33 +0100
commit2d897237e01a7ed0dd8b9ac3b3a8234900145350 (patch)
tree38ba5e4bb447a3526386c947bc19cc69bf514305 /migration/migration-stats.h
parentcc8bf57d56ef22a66711100f5d94861a627e9b9f (diff)
qemu_file: Use a stat64 for qemu_file_transferred
This way we can read it from any thread. I checked that it gives the same value as the current one. We never use two qemu_files at the same time. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231025091117.6342-3-quintela@redhat.com>
Diffstat (limited to 'migration/migration-stats.h')
-rw-r--r--migration/migration-stats.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/migration/migration-stats.h b/migration/migration-stats.h
index 2358caad63..b7795e7914 100644
--- a/migration/migration-stats.h
+++ b/migration/migration-stats.h
@@ -82,6 +82,10 @@ typedef struct {
*/
Stat64 precopy_bytes;
/*
+ * Number of bytes transferred with QEMUFile.
+ */
+ Stat64 qemu_file_transferred;
+ /*
* Amount of transferred data at the start of current cycle.
*/
Stat64 rate_limit_start;