From owner-freebsd-virtualization@freebsd.org Mon Jun 27 18:49:38 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1FABBB84F15 for ; Mon, 27 Jun 2016 18:49:38 +0000 (UTC) (envelope-from public@plane.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CFEF12BDF for ; Mon, 27 Jun 2016 18:49:37 +0000 (UTC) (envelope-from public@plane.gmane.org) Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bHbb6-0003ZD-Ab for freebsd-virtualization@freebsd.org; Mon, 27 Jun 2016 20:49:28 +0200 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bHbb2-0003Ww-Tp for public-freebsd-virtualization-h+KGxgPPiopAfugRpC6u6w@plane.gmane.org; Mon, 27 Jun 2016 20:49:24 +0200 Received: from onethreetwo.vfemail.net ([199.16.11.132] helo=vfemail.net) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bHW72-0005xW-7d for public-freebsd-virtualization-h+KGxgPPiopAfugRpC6u6w@plane.gmane.org; Mon, 27 Jun 2016 14:58:04 +0200 Received: (qmail 83413 invoked by uid 89); 27 Jun 2016 12:58:00 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 27 Jun 2016 12:57:57 -0000 Received: (qmail 7046 invoked by uid 89); 27 Jun 2016 06:31:29 -0000 Received: by simscan 1.3.1 ppid: 7039, pid: 7042, t: 0.0044s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 27 Jun 2016 06:31:29 -0000 Received: (qmail 18416 invoked by uid 89); 27 Jun 2016 06:31:29 -0000 Received: by simscan 1.4.0 ppid: 18393, pid: 18413, t: 0.4854s scanners:none Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27) by mail.vfemail.net with ESMTPA; 27 Jun 2016 06:31:29 -0000 From: Jan Beich To: Peter Grehan Cc: Oleg Ginzburg , public-freebsd-virtualization-h+KGxgPPiopAfugRpC6u6w@plane.gmane.org Subject: Re: VirtIO Ethernet driver in DragonFlyBSD under FreeBSD bhyve References: <9893747.yFCcEWVR7f@gizmo.my.domain> <56ABFE12.4060805@freebsd.org> Date: Mon, 27 Jun 2016 08:31:19 +0200 Message-ID: <60sv-b0so-wny@vfemail.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-TMDA-Confirmed: Mon, 27 Jun 2016 20:49:24 +0200 X-Mailman-Approved-At: Mon, 27 Jun 2016 19:02:57 +0000 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 27 Jun 2016 18:49:38 -0000 --=-=-= Content-Type: text/plain Peter Grehan writes: > Hi, > >> I do not know whose it is a problem - DragonFlyBSD vtnet(4) driver or FreeBSD >> bhyve(4), so I decided to send on both maillist. >> >> I've try to boot DragonFlyBSD 4.4 in bhyve. All goes well, however, there is >> no network interface. During boot i see: > .. >> Boot processing : https://youtu.be/iV1eZxEvj0c >> >> bhyve executed with follow settings: >> >> /usr/sbin/bhyve -c 1 -m 4294967296 -A -H -P -s 0:0,hostbridge -s 2:0,virtio- >> rnd -s 3:0,virtio-net,tap0 ... >> >> What can be done to correct this error ? > > Firstly, very happy to see D'Fly booting under bhyve+UEFI/CSM :) > > I'll do some debug and see if this can be fixed. Any news since then? virtio-net and virtio-blk work fine if using Qemu + OVMF 20160418 (a8c39ba) on the same DragonFly disk image where Bhyve + BHYVE_UEFI_20160526.fd fails. -- # virtio-blk story: virtio_pci0: port 0x2000-0x203f mem 0xc0002000-0xc0003fff irq 6 at device 4.0 on pci0 vtblk0: on virtio_pci0 virtio_pci0: host features: 0x10000644 virtio_pci0: negotiated features: 0x10000244 virtio_pci0: cannot allocate interrupts vtblk0: cannot allocate virtqueue device_probe_and_attach: vtblk0 attach returned 6 virtio_pci0@pci0:0:4:0: class=0x010000 card=0x00021af4 chip=0x10011af4 rev=0x00 hdr=0x00 vendor = 'Red Hat, Inc' device = 'Virtio block device' class = mass storage subclass = SCSI bar [10] = type I/O Port, range 32, base 0x2000, size 64, enabled bar [14] = type Memory, range 32, base 0xc0002000, size 8192, enabled cap 11[40] = MSI-X supports 2 messages in map 0x14 cap 05[4c] = MSI supports 1 message, 64 bit vs. virtio_pci1: port 0xc000-0xc03f mem 0xc1000000-0xc1000fff irq 11 at device 4.0 on pci0 vtblk0: on virtio_pci1 virtio_pci1: host features: 0x71000ed4 virtio_pci1: negotiated features: 0x10000a54 virtio_pci1@pci0:0:4:0: class=0x010000 card=0x00021af4 chip=0x10011af4 rev=0x00 hdr=0x00 vendor = 'Red Hat, Inc' device = 'Virtio block device' class = mass storage subclass = SCSI bar [10] = type I/O Port, range 32, base 0xc000, size 64, enabled bar [14] = type Memory, range 32, base 0xc1000000, size 4096, enabled cap 11[40] = MSI-X supports 2 messages in map 0x14 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJXcMg3XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3bekUIANReoDfpRUCOBSIXD3Jot4Sh ig2Kdm/1cB4fPhAAd1KOL47FFyvJtU9bB8sbMaC9CGnv2jK7CjJHTIdrsv1Cl1dJ biRoRAdhb7uAjJNpXkvbqUJWOFYOeV9QXQ6nQC4k7dJXDQy3rr2q4s+TR1xKCIIb 1D7zfAW5nyhsamOdXoc3yBn+QuEV6qFfz0SIf72uI29IKtRRonnAqS6A7DcApKbw sxn8QsmgSZYkUL9q4uJnXCdcg9RD9VwG+aNxH7hQtROgIB8HY6j7OAWxG7UFnsi6 qilOtP1TBNDfWy7plL1viBhNh0njb29LEmt1dXmPe6J4cahpKHYp15odT6DGh8g= =+M6M -----END PGP SIGNATURE----- --=-=-=--