From: Orit Wasserman Date: Fri, 22 Mar 2013 14:47:59 +0000 (+0200) Subject: Update bytes_xfer in qemu_put_byte X-Git-Tag: v1.5.0-rc0~410^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d8a30bb98e89c203b3d2289ab0638c38bbeb7c1;p=thirdparty%2Fqemu.git Update bytes_xfer in qemu_put_byte Signed-off-by: Orit Wasserman Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- diff --git a/savevm.c b/savevm.c index 3466ef4aacc..5ab256c97df 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); }