mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
cc8bf57d56
commit
2d897237e0
2 changed files with 7 additions and 2 deletions
|
@ -81,6 +81,10 @@ typedef struct {
|
|||
* Number of bytes sent during precopy stage.
|
||||
*/
|
||||
Stat64 precopy_bytes;
|
||||
/*
|
||||
* Number of bytes transferred with QEMUFile.
|
||||
*/
|
||||
Stat64 qemu_file_transferred;
|
||||
/*
|
||||
* Amount of transferred data at the start of current cycle.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue