Commit 7d8a30bb authored by Orit Wasserman's avatar Orit Wasserman Committed by Juan Quintela
Browse files

Update bytes_xfer in qemu_put_byte


Signed-off-by: default avatarOrit Wasserman <owasserm@redhat.com>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 28085f7b
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment