aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--savevm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c
index 3466ef4aac..5ab256c97d 100644
--- a/savevm.c
+++ b/savevm.c
@@ -648,6 +648,8 @@ void qemu_put_byte(QEMUFile *f, int v)
f->buf[f->buf_index++] = v;
f->is_write = 1;
+ f->bytes_xfer++;
+
if (f->buf_index >= IO_BUF_SIZE) {
qemu_fflush(f);
}