summary refs log tree commit diff stats
path: root/python/qemu/qmp/models.py
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-05-15 21:57:09 +0200
committerJuan Quintela <quintela@redhat.com>2023-05-18 18:41:46 +0200
commitcbec7eb76879d419e7dbf531ee2506ec0722e825 (patch)
tree2564b5bdcf643dd28e4f5a7c986b40887a79978b /python/qemu/qmp/models.py
parentbd7ceaf6d584b77dd6dbd8af7949d1e91a7c0537 (diff)
downloadfocaccia-qemu-cbec7eb76879d419e7dbf531ee2506ec0722e825.tar.gz
focaccia-qemu-cbec7eb76879d419e7dbf531ee2506ec0722e825.zip
migration/multifd: Compute transferred bytes correctly
In the past, we had to put the in the main thread all the operations
related with sizes due to qemu_file not beeing thread safe.  As now
all counters are atomic, we can update the counters just after the
do the write.  As an aditional bonus, we are able to use the right
value for the compression methods.  Right now we were assuming that
there were no compression at all.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20230515195709.63843-17-quintela@redhat.com>
Diffstat (limited to 'python/qemu/qmp/models.py')
0 files changed, 0 insertions, 0 deletions