Patchwork [v5,3/7] Update bytes_xfer in qemu_put_byte

login
register
mail settings
Submitter Orit Wasserman
Date March 22, 2013, 2:47 p.m.
Message ID <1363963683-26157-4-git-send-email-owasserm@redhat.com>
Download mbox | patch
Permalink /patch/230078/
State New
Headers show

Comments

Orit Wasserman - March 22, 2013, 2:47 p.m.
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
---
 savevm.c | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/savevm.c b/savevm.c
index 21140c4..2ba0d85 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);
     }