From owner-freebsd-current@FreeBSD.ORG Fri Jul 9 23:59:44 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B965106566C for ; Fri, 9 Jul 2010 23:59:44 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout3.yahoo.com (mrout3.yahoo.com [216.145.54.173]) by mx1.freebsd.org (Postfix) with ESMTP id 66F4B8FC0C for ; Fri, 9 Jul 2010 23:59:44 +0000 (UTC) Received: from [127.0.0.1] (proxy8.corp.yahoo.com [216.145.48.13]) by mrout3.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id o69NxRMT014764; Fri, 9 Jul 2010 16:59:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=subject:from:reply-to:to:cc:in-reply-to:references: content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=NWDy8MWbmPtPXYuTgFZ/0L3Pz/Lcif9Ad/UPkuUXfNtQ/2fpfMhI55FQN7QKGibJ From: Sean Bruno To: hselasky@c2i.net In-Reply-To: <201007100016.29946.hselasky@c2i.net> References: <1278695579.2436.27.camel@localhost.localdomain> <201007100016.29946.hselasky@c2i.net> Content-Type: text/plain; charset="UTF-8" Date: Fri, 09 Jul 2010 16:59:27 -0700 Message-ID: <1278719967.2499.91.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit Cc: freebsd-current Subject: Re: QEMU/KVM Panic on USB Mount X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2010 23:59:44 -0000 On Fri, 2010-07-09 at 17:16 -0500, Hans Petter Selasky wrote: > On Friday 09 July 2010 19:12:59 Sean Bruno wrote: > > In order to come up with the most convoluted problem possible, I present > > to you screen shots of a panic from a FreeBSD VM running in QEMU > > emulation under RedHat's KVM infrastructure. > > > > I presented a perfectly functional USB partition from my host machine to > > the VM. Then I attempted to mount the partition from FreeBSD and it > > generated the panics located here: > > > > http://people.freebsd.org/~sbruno/usb_panic1.png > > http://people.freebsd.org/~sbruno/usb_panic2.png > > > > This is 100% reproducible. But not an emergency or anything. > > It might be that there is a conflict that both the VM and the OS is accessing > / loading drivers on the same USB device. The panic seems not directly related > to USB. > > --HPS Could be. I've played with the way KVM/QEMU emulates the USB drive. It has four "types" it can present, IDE, SCSI, USB or VirtIO. SCSI seems to work fine on an emulated sym(4) target. The VM itself is not booting off of the USB drive, it is booting off of its own drive. I'm attaching the USB disk as a secondary drive, so there's no "drivers" being loaded off of it at boot time. Is this what you were hinting at? Sean