aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-02-09 13:46:48 +0200
committerAvi Kivity <avi@redhat.com>2011-02-09 13:49:40 +0200
commite374f7e06fe82c195be2e62c667ae0b3ffcb27ad (patch)
treecc2df6311cc5541d48196bbe33ad680cb0269c85
parent185fc528a10d61cf17bbe50a198a8f466a732aa0 (diff)
Close all block drivers on quitqemu-kvm-0.14.0-rc0
Following 2bc93fed76c89f7adaa0e5bb3, close all block drivers on quit. Fixes qcow2 data loss after quit due to qcowcache being volatile. Signed-off-by: Avi Kivity <avi@redhat.com> (cherry picked from commit 9d9468914ea5e5a09ac93bd262c69a3333232d56)
-rw-r--r--qemu-kvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 49741796f..49cd6837c 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -1606,6 +1606,7 @@ int kvm_main_loop(void)
}
}
+ bdrv_close_all();
pause_all_threads();
pthread_mutex_unlock(&qemu_mutex);