提交 7d8a30bb 编写于 作者: O Orit Wasserman 提交者: Juan Quintela

Update bytes_xfer in qemu_put_byte

Signed-off-by: NOrit Wasserman <owasserm@redhat.com>
Reviewed-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NJuan Quintela <quintela@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册