mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
migration: yay, buffering is gone
Buffering was needed because blocking writes could take a long time and starve other threads seeking to grab the big QEMU mutex. Now that all writes (except within _complete callbacks) are done outside the big QEMU mutex, we do not need buffering at all. Reviewed-by: Orit Wasserman <owasserm@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
9b09503752
commit
edaae611f6
3 changed files with 22 additions and 61 deletions
1
savevm.c
1
savevm.c
|
@ -1724,6 +1724,7 @@ void qemu_savevm_state_complete(QEMUFile *f)
|
|||
}
|
||||
|
||||
qemu_put_byte(f, QEMU_VM_EOF);
|
||||
qemu_fflush(f);
|
||||
}
|
||||
|
||||
uint64_t qemu_savevm_state_pending(QEMUFile *f, uint64_t max_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue