summaryrefslogtreecommitdiff
path: root/xen/block.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-02-07 03:18:50 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-02-07 03:18:50 +0100
commitaaf803372bd4b30b97a2039e4b1b36b07c0a7250 (patch)
tree55e7c21adb37f514c2d888f5d3141659eea67ced /xen/block.c
parentd683da41fcfefcc8ba63b1fa1ab8af5b3078183f (diff)
Defer Xen device initialization to device_service_create
* device/device_init.c (device_service_create) [MACH_HYP]: Call hyp_dev_init. * xen/xen.c (hyp_init): Do not call hyp_block_init and hyp_net_init, now called in ... (hyp_dev_init): New function. * xen/xen.h (hyp_dev_init): New declaration.
Diffstat (limited to 'xen/block.c')
-rw-r--r--xen/block.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/block.c b/xen/block.c
index 3c188bf..76119e8 100644
--- a/xen/block.c
+++ b/xen/block.c
@@ -213,6 +213,7 @@ void hyp_block_init(void) {
panic("%s: couldn't store state (%s)", device_name, hyp_store_error);
kfree((vm_offset_t) c, strlen(c)+1);
} while (!hyp_store_transaction_stop(t));
+ /* TODO randomly wait? */
c = hyp_store_read(0, 5, VBD_PATH, "/", vbds[n], "/", "backend");
if (!c)