From owner-freebsd-virtualization@freebsd.org Thu Jan 9 03:18:56 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 582D822566A for ; Thu, 9 Jan 2020 03:18:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47tWYD1ldzz4WRd for ; Thu, 9 Jan 2020 03:18:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3BFDF225669; Thu, 9 Jan 2020 03:18:56 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3BB22225668 for ; Thu, 9 Jan 2020 03:18:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47tWYD0thyz4WRc for ; Thu, 9 Jan 2020 03:18:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 19F6F2259F for ; Thu, 9 Jan 2020 03:18:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0093ItSd049049 for ; Thu, 9 Jan 2020 03:18:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0093Itnn049043 for virtualization@FreeBSD.org; Thu, 9 Jan 2020 03:18:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 241774] FreeBSD 11.3 & 12.0 has broken SCSI & Networking on KVM/QEMU Q35 with OVMF Date: Thu, 09 Jan 2020 03:18:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tommyhp2@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 09 Jan 2020 03:18:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241774 --- Comment #16 from Tommy P --- (In reply to John Hartley from comment #14) Hi John, Good news! After some debugging, I was able to get VirtIO to work with Q35 with OVMF for 12.0-RELEASE-p12 r356438M and without OVMF for 12.0-RELEASE-p= 12 r356535M! Please see my bug report (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236922) for the attach= ment and caution regarding netmap. Here's the pciconf output for the VirtIO: vtpcim0@pci0:1:0:0: class=3D0x020000 card=3D0x11001af4 chip=3D0x10411af= 4 rev=3D0x01 hdr=3D0x00 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio network device' class =3D network subclass =3D ethernet bar [14] =3D type Memory, range 32, base 0x98e00000, size 4096, enabl= ed bar [20] =3D type Prefetchable Memory, range 64, base 0x800000000, si= ze 16384, enabled cap 11[dc] =3D MSI-X supports 3 messages, enabled Table in map 0x14[0x0], PBA in map 0x14[0x800] cap 09[c8] =3D vendor (length 20) cap 09[b4] =3D vendor (length 20) cap 09[a4] =3D vendor (length 16) cap 09[94] =3D vendor (length 16) cap 09[84] =3D vendor (length 16) cap 01[7c] =3D powerspec 3 supports D0 D3 current D0 cap 10[40] =3D PCI-Express 2 endpoint max data 128(128) link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) sym0@pci0:2:0:0: class=3D0x010000 card=3D0x10000000 chip=3D0x0012100= 0 rev=3D0x00 hdr=3D0x00 vendor =3D 'LSI Logic / Symbios Logic' device =3D '53c895a' class =3D mass storage subclass =3D SCSI bar [10] =3D type I/O Port, range 32, base 0xb000, size 256, enabled bar [14] =3D type Memory, range 32, base 0x98c02000, size 1024, enabl= ed bar [18] =3D type Memory, range 32, base 0x98c00000, size 8192, enabl= ed vtpcim1@pci0:3:0:0: class=3D0x010000 card=3D0x11001af4 chip=3D0x10481af= 4 rev=3D0x01 hdr=3D0x00 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio SCSI' class =3D mass storage subclass =3D SCSI bar [14] =3D type Memory, range 32, base 0x98a00000, size 4096, enabl= ed bar [20] =3D type Prefetchable Memory, range 64, base 0x800100000, si= ze 16384, enabled cap 11[dc] =3D MSI-X supports 4 messages, enabled Table in map 0x14[0x0], PBA in map 0x14[0x800] cap 09[c8] =3D vendor (length 20) cap 09[b4] =3D vendor (length 20) cap 09[a4] =3D vendor (length 16) cap 09[94] =3D vendor (length 16) cap 09[84] =3D vendor (length 16) cap 01[7c] =3D powerspec 3 supports D0 D3 current D0 cap 10[40] =3D PCI-Express 2 endpoint max data 128(128) link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) vtpcim2@pci0:4:0:0: class=3D0x078000 card=3D0x11001af4 chip=3D0x10431af= 4 rev=3D0x01 hdr=3D0x00 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio console' class =3D simple comms bar [14] =3D type Memory, range 32, base 0x98800000, size 4096, enabl= ed bar [20] =3D type Prefetchable Memory, range 64, base 0x800200000, si= ze 16384, enabled cap 11[dc] =3D MSI-X supports 2 messages Table in map 0x14[0x0], PBA in map 0x14[0x800] cap 09[c8] =3D vendor (length 20) cap 09[b4] =3D vendor (length 20) cap 09[a4] =3D vendor (length 16) cap 09[94] =3D vendor (length 16) cap 09[84] =3D vendor (length 16) cap 01[7c] =3D powerspec 3 supports D0 D3 current D0 cap 10[40] =3D PCI-Express 2 endpoint max data 128(128) link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) Note that previously it was none#@pci now it's vtpcim#@pci. It also seems = to support booting from both SATA and VirtIO Serial: root@fbsd12-ovmf:~ # ls /dev/{da,ada,vtbd}* /dev/vtbd0 /dev/vtbd0p1 /dev/vtbd0p2 root@fbsd12-ovmf:~ # ifconfig vtnet0: flags=3D8802 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D4c07bb ether ... media: Ethernet autoselect (10Gbase-T ) status: active nd6 options=3D29 em0: flags=3D8843 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D81209b ether ... inet ... netmask 0xffffff00 broadcast 10.100.0.255 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D29 lo0: flags=3D8049 metric 0 mtu 16384 options=3D680003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=3D21 This was a fresh install of 12.0-RELEASE onto SATA. After replacing and patching /usr/src in addition to kernel rebuild, it now boots as VirtIO Ser= ial! --=20 You are receiving this mail because: You are the assignee for the bug.=