diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-22 17:36:29 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-11 13:32:02 +0100 |
commit | edaae611f6df0d66a8b5a90c84123b72980c7a22 (patch) | |
tree | 8beadf62d62154d239ade72788695b46469d23b2 /savevm.c | |
parent | 9b0950375277467fd74a9075624477ae43b9bb22 (diff) | |
download | qemu-edaae611f6df0d66a8b5a90c84123b72980c7a22.tar.gz qemu-edaae611f6df0d66a8b5a90c84123b72980c7a22.tar.bz2 qemu-edaae611f6df0d66a8b5a90c84123b72980c7a22.zip |
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>
Diffstat (limited to 'savevm.c')
-rw-r--r-- | savevm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |