From: Kevin Wolf Subject: [PATCH 1/6] ioemu: Initialize blktap backend for FV machines Date: Fri, 13 Mar 2009 10:16:38 +0100 Message-ID: <1236935803-32548-2-git-send-email-kwolf@suse.de> References: <1236935803-32548-1-git-send-email-kwolf@suse.de> Return-path: In-Reply-To: <1236935803-32548-1-git-send-email-kwolf@suse.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian.Jackson@eu.citrix.com, Kevin Wolf List-Id: xen-devel@lists.xenproject.org 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 --- 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