PV drivers (and thus blktap) are not only used by PV domains, but also
by HVM guests. Adding a call to the init functions allows them to have
their qemu-dm instance as blktap backend.
Signed-off-by: Kevin Wolf <kwolf@xxxxxxx>
---
hw/xen_machine_fv.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/hw/xen_machine_fv.c b/hw/xen_machine_fv.c
index 976e7e7..a801e46 100644
--- a/hw/xen_machine_fv.c
+++ b/hw/xen_machine_fv.c
@@ -185,6 +185,7 @@ void qemu_invalidate_map_cache(void)
#endif /* defined(MAPCACHE) */
+extern void init_blktap(void);
static void xen_init_fv(ram_addr_t ram_size, int vga_ram_size,
const char *boot_device, DisplayState *ds,
@@ -210,6 +211,11 @@ static void xen_init_fv(ram_addr_t ram_size, int
vga_ram_size,
}
#endif
+#ifndef CONFIG_STUBDOM
+ /* Initialize tapdisk client */
+ init_blktap();
+#endif
+
#ifdef CONFIG_STUBDOM /* the hvmop is not supported on older hypervisors */
xc_set_hvm_param(xc_handle, domid, HVM_PARAM_DM_DOMAIN, DOMID_SELF);
#endif
--
1.6.0.2
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|