]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Register block drivers before reading xenstore.
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 30 Jul 2008 10:52:03 +0000 (11:52 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 30 Jul 2008 10:52:03 +0000 (11:52 +0100)
Without this, cow images do not work.  Part of the fix to
 http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1304.

Thanks to report from Intel.

vl.c

diff --git a/vl.c b/vl.c
index 2c9d8c4765ef85223f9fac39a56befc3a1755ec3..06c411d421df24db454a69159bb2048e8213f98e 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -8698,11 +8698,11 @@ int main(int argc, char **argv)
     }
 #endif
 
+    bdrv_init();
+
     xc_handle = xc_interface_open();
     xenstore_parse_domain_config(domid);
 
-    bdrv_init();
-
     /* we always create the cdrom drive, even if no disk is there */
 
 #ifndef CONFIG_DM