From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 31 19:18:00 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52F17789; Wed, 31 Oct 2012 19:18:00 +0000 (UTC) (envelope-from bryanv@daemoninthecloset.org) Received: from torment.daemoninthecloset.org (ip-94-242-209-234.as5577.net [94.242.209.234]) by mx1.freebsd.org (Postfix) with ESMTP id 072B58FC08; Wed, 31 Oct 2012 19:17:59 +0000 (UTC) Received: from sage.daemoninthecloset.org (unknown [70.114.196.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "sage.daemoninthecloset.org", Issuer "daemoninthecloset.org" (verified OK)) by torment.daemoninthecloset.org (Postfix) with ESMTPS id 9B7B442C0865; Wed, 31 Oct 2012 20:19:19 +0100 (CET) X-Virus-Scanned: amavisd-new at daemoninthecloset.org Received: from sage.daemoninthecloset.org (sage.daemoninthecloset.org [127.0.1.1]) by sage.daemoninthecloset.org (Postfix) with ESMTP id D40186EB64; Wed, 31 Oct 2012 14:17:09 -0500 (CDT) Date: Wed, 31 Oct 2012 14:17:09 -0500 (CDT) From: Bryan Venteicher To: Sean Bruno Message-ID: <362508449.997.1351711029743.JavaMail.root@daemoninthecloset.org> In-Reply-To: <1351704791.4156.5.camel@powernoodle.corp.yahoo.com> Subject: Re: dev/virtio stuff MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.51.1.14] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC22 (Mac)/7.2.0_GA_2669) Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 19:18:00 -0000 Hi, ----- Original Message ----- > From: "Sean Bruno" > To: "Bryan Venteicher" > Cc: sbruno@freebsd.org, freebsd-virtualization@freebsd.org > Sent: Wednesday, October 31, 2012 12:33:11 PM > Subject: Re: dev/virtio stuff > > See below. > > On Mon, 2012-10-29 at 22:51 -0700, Bryan Venteicher wrote: > > Hi, > > > > ----- Original Message ----- > > > From: "Sean Bruno" > > > To: freebsd-virtualization@freebsd.org > > > Sent: Monday, October 29, 2012 4:49:42 PM > > > Subject: dev/virtio stuff > > > > > > So ... I see we have virtio nowish. I've started my hackery to > > > make > > > some man(4) pages for this, but have some questions. Doing some > > > raw > > > QEMU things, I can't quite see how to get the virtio blk and net > > > devices working. > > > > > > > There are already virtio(4) man pages, but it looks like they > > didn't > > get MFC to 9. > > Want me to shovel them back? > Sure. That would be great. > > > > > I've loaded the virtio drivers as modules. Is this not going to > > > work in > > > this case? I don't see the virtio versions of disk devices in > > > /dev > > > so I'm not sure what the problem here is. > > > > > > http://people.freebsd.org/~sbruno/virtio.txt > > > > >> FreeBSD 7.5-YAHOO-20121028 #0 ybsd_9@324991: Sun Oct 28 22:08:46 > > >> UTC 2012 > > >> kernel@yahoo-inc.com:/sys/amd64/compile/YAHOO amd64 > > > > I assume this is 9-STABLE'ish? > > > Yah, its pretty close to stable/9 +- 1 or to commits. > > > >> virtio_pci0: port 0xc200-0xc23f irq > > >> 11 at device 4.0 on pci0 > > >> vtblk0: on virtio_pci0 > > >> virtio_pci0: host features: 0x41000014 > > >> > > >> virtio_pci0: negotiated features: 0x14 > > >> vtblk0: 4096MB (8388608 512 byte sectors) > > > > The VirtIO block gets probed and attached correctly, and right > > after the > > last printf, hands off to disk_create(9) to create the GEOM > > plumbing and > > device. VirtIO block devices get created as vtbdX, not as ad, ada, > > or da. > > > > Can you see if g_disk_create() gets called (with flag==EV_CANCEL)? > > What does a verbose boot show? > > > > Bryan > > Grabbed a verbose dmesg for you here: > > http://people.freebsd.org/~sbruno/viritio_dmesg.txt > >> GEOM: new disk vtbd0 So it seems the VirtIO block device got created just fine. > Sean > >