mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
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>
This commit is contained in:
parent
28085f7b4d
commit
7d8a30bb98
1 changed files with 2 additions and 0 deletions
2
savevm.c
2
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue