From 2bc93fed76c89f7adaa0e5bb357dcdc6c2b097a8 Mon Sep 17 00:00:00 2001 From: MORITA Kazutaka Date: Fri, 28 May 2010 11:44:57 +0900 Subject: close all the block drivers before the qemu process exits This patch calls the close handler of the block driver before the qemu process exits. This is necessary because the sheepdog block driver releases the lock of VM images in the close handler. Signed-off-by: MORITA Kazutaka Signed-off-by: Kevin Wolf --- vl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 2769d1a4bc..551138f0cc 100644 --- a/vl.c +++ b/vl.c @@ -1991,6 +1991,7 @@ static void main_loop(void) vm_stop(r); } } + bdrv_close_all(); pause_all_vcpus(); } -- cgit 1.4.1