From aaf803372bd4b30b97a2039e4b1b36b07c0a7250 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 7 Feb 2011 03:18:50 +0100 Subject: 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. --- xen/block.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xen/block.c') diff --git a/xen/block.c b/xen/block.c index 3c188bff..76119e8f 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) -- cgit v1.2.3