aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 7719030993..32c994366c 100644
--- a/vl.c
+++ b/vl.c
@@ -4551,6 +4551,9 @@ void do_savevm(const char *name)
return;
}
+ /* ??? Should this occur after vm_stop? */
+ qemu_aio_flush();
+
saved_vm_running = vm_running;
vm_stop(0);
@@ -4641,6 +4644,9 @@ void do_loadvm(const char *name)
return;
}
+ /* Flush all IO requests so they don't interfere with the new state. */
+ qemu_aio_flush();
+
saved_vm_running = vm_running;
vm_stop(0);