From owner-freebsd-xen@FreeBSD.ORG Fri May 20 12:01:48 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AA8B1065698 for ; Fri, 20 May 2011 12:01:48 +0000 (UTC) (envelope-from bouyer@asim.lip6.fr) Received: from osiris.lip6.fr (osiris.lip6.fr [IPv6:2001:660:3302:283c::1e]) by mx1.freebsd.org (Postfix) with ESMTP id B97B18FC19 for ; Fri, 20 May 2011 12:01:47 +0000 (UTC) Received: from antioche.lip6.fr (antioche.ipv6.lip6.fr [IPv6:2001:660:3302:282a:204:75ff:fe9f:9e11]) by osiris.lip6.fr (8.14.4/lip6) with ESMTP id p4KC1juH019946 ; Fri, 20 May 2011 14:01:45 +0200 (CEST) X-pt: osiris.lip6.fr Received: from armandeche.soc.lip6.fr (armandeche.lip6.fr [132.227.63.133]) by antioche.lip6.fr (8.14.4/8.12.11) with ESMTP id p4KC1jRX024438; Fri, 20 May 2011 14:01:45 +0200 (MEST) Received: by armandeche.soc.lip6.fr (Postfix, from userid 20331) id 9945F34A9C; Fri, 20 May 2011 14:01:45 +0200 (MEST) Date: Fri, 20 May 2011 14:01:45 +0200 From: Manuel Bouyer To: Hugo Silva Message-ID: <20110520120145.GA1015@asim.lip6.fr> References: <4DB7616F.9060109@barafranca.com> <20110520113518.GA9031@asim.lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110520113518.GA9031@asim.lip6.fr> User-Agent: Mutt/1.5.20 (2009-06-14) X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.2.6 (osiris.lip6.fr [IPv6:2001:660:3302:283c::1e]); Fri, 20 May 2011 14:01:45 +0200 (CEST) X-Scanned-By: MIMEDefang 2.71 on IPv6:2001:660:3302:283c::1e Cc: freebsd-xen@freebsd.org, port-xen@NetBSD.org Subject: Re: FreeBSD HVM+PV boot hangs with phy: run_interrupt_driven_hooks: still waiting after 60 seconds for xenbusb_nop_confighook_cb X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 12:01:49 -0000 On Fri, May 20, 2011 at 01:35:18PM +0200, Manuel Bouyer wrote: > > > > If I create a FreeBSD VM and use file:, XENHVM will boot to completion. > > > > If I vnconfig that same file, then it will hang. On lvm storage it will > > also hang. > > > > So it seems to be related to using phy:. > > It could be because with file:, the backend driver uses a vnd device attached > to the file while qemu-dm opens the file directly. In the phy: case, both > qemu-dm and the backend driver wants to open the device, and this may be > denied by the kernel. OK, I understand the problem now: the block device backend driver wants a block device (e.g. /dev/vnd0d). qemu-dm wants the raw device (e.g. /dev/rvnd0d). We should pach either qemu-dm to add the 'r' to the path, or xend to do so. My feeling it that's it's easier to do in qemu-dm at this time (we can do a stat(2) first to see if the given path is a block device, and hack the path if it is). -- Manuel Bouyer NetBSD: 26 ans d'experience feront toujours la difference --