diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-09-03 12:08:37 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-09-03 12:08:37 +0000 |
commit | 6192bc374ff3fb8d7dfc8723dee28559488dfff5 (patch) | |
tree | bda053e9e0ab53ed75ad09ac0085fd09bdacc500 /vl.c | |
parent | a917d384ac0d09cd68266a6f2ca5c94212c8f81e (diff) | |
download | qemu-6192bc374ff3fb8d7dfc8723dee28559488dfff5.zip qemu-6192bc374ff3fb8d7dfc8723dee28559488dfff5.tar.gz qemu-6192bc374ff3fb8d7dfc8723dee28559488dfff5.tar.bz2 |
Flush IO requests before savevm (original patch by Blue Swirl).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2140 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |