mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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
This commit is contained in:
parent
a917d384ac
commit
6192bc374f
3 changed files with 18 additions and 0 deletions
6
vl.c
6
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue