Signed-off-by: Orit Wasserman <owass...@redhat.com> Reviewed-by: Juan Quintela <quint...@redhat.com> --- savevm.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/savevm.c b/savevm.c index 6608b6e..bd60169 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); } -- 1.7.11.7