Patchwork [v2,3/8] Update bytes_xfer in qemu_put_byte

login
register
mail settings
Submitter Orit Wasserman
Date March 21, 2013, 1:23 p.m.
Message ID <1363872230-15081-4-git-send-email-owasserm@redhat.com>
Download mbox | patch
Permalink /patch/229676/
State New
Headers show

Comments

Orit Wasserman - March 21, 2013, 1:23 p.m.
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
---
 savevm.c | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/savevm.c b/savevm.c
index baa45ae..686c8c8 100644
--- a/savevm.c
+++ b/savevm.c
@@ -647,6 +647,8 @@  void qemu_put_byte(QEMUFile *f, int v)
 
     f->buf[f->buf_index++] = v;
     f->is_write = 1;
+    f->bytes_xfer += 1;
+
     if (f->buf_index >= IO_BUF_SIZE) {
         qemu_fflush(f);
     }