aboutsummaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-02-22 17:36:29 +0100
committerJuan Quintela <quintela@redhat.com>2013-03-11 13:32:02 +0100
commitedaae611f6df0d66a8b5a90c84123b72980c7a22 (patch)
tree8beadf62d62154d239ade72788695b46469d23b2 /savevm.c
parent9b0950375277467fd74a9075624477ae43b9bb22 (diff)
downloadqemu-arm-edaae611f6df0d66a8b5a90c84123b72980c7a22.tar.gz
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c
index 7c7774e932..ce10295f5c 100644
--- a/savevm.c
+++ b/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)