diff options
author | Orit Wasserman <owasserm@redhat.com> | 2013-03-22 16:47:59 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-26 13:32:33 +0100 |
commit | 7d8a30bb98e89c203b3d2289ab0638c38bbeb7c1 (patch) | |
tree | 48f2699e8feb9e59e763f90447331445713ce707 /savevm.c | |
parent | 28085f7b4d06970efa004257fcef013caf495a08 (diff) |
Update bytes_xfer in qemu_put_byte
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'savevm.c')
-rw-r--r-- | savevm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |