From owner-freebsd-virtualization@freebsd.org Wed Jan 8 04:56:48 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 A9CA41FBC7D for ; Wed, 8 Jan 2020 04:56:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47sxmc46Jvz44W3 for ; Wed, 8 Jan 2020 04:56:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 8CDD41FBC7C; Wed, 8 Jan 2020 04:56:48 +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 8CA341FBC7B for ; Wed, 8 Jan 2020 04:56:48 +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 47sxmc3Gt9z44W2 for ; Wed, 8 Jan 2020 04:56:48 +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 4E969A9C3 for ; Wed, 8 Jan 2020 04:56:48 +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 0084umii078681 for ; Wed, 8 Jan 2020 04:56:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0084umk7078678 for virtualization@FreeBSD.org; Wed, 8 Jan 2020 04:56:48 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: Wed, 08 Jan 2020 04:56:47 +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: Wed, 08 Jan 2020 04:56:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241774 --- Comment #13 from Tommy P --- (In reply to John Hartley from comment #12) Hi John, If you look again at the pciconf output: none1@pci0:1:0:0 Implies that no driver were loaded for that pci device at slot 0:1:0:0 since FreeBSD's VirtIO drivers currently does not support PCI-E bus. The rest of= the pciconf are for debugging driver. For the other output such as: sym0@pci0:2:0:0 Implies that FreeBSD's LSI/Symbios SCSI (sym) were loaded successfully. Th= us, any HDD attached to that controller would work. Unfortunately, I don't thi= nk this SCSI controller supports UEFI boot. Here are the details of pciconf, from my understanding, of how FreeBSD's Vi= rtIO drivers work: none1@pci0:1:0:0: class=3D0x020000 card=3D0x11001af4 chip=3D0x10411af= 4 rev=3D0x01 hdr=3D0x00 *) rev=3D0x01 implies PCI-E bus while rev=3D0x00 implies PCI bus *) last 4 digits of card/chip implies the vendor ID: 0x1af4 (per /usr/src/sys/dev/virtio/pci/virtio_pci.h) *) if device is on PCI bus, the first 4 digits of 'card' imply device type = (per /usr/src/sys/dev/virtio/virtio_ids.h) *) if device is on PCI-E bus, the first 4 digits of 'chip' - 0x1040 should match device type from /usr/src/sys/dev/virtio/virtio_ids.h. Thus, 0x1041 - 0x1040 =3D 0x1 which is VirtIO NIC per pciconf's verbose out= put: #define VIRTIO_ID_NETWORK 1 And 0x1048 - 0x1040 =3D 0x8 which is VirtIO SCSI: #define VIRTIO_ID_SCSI 8 The current VirtIO drivers does not have the necessary codes to detect the device ID connected to the PCI-E bus nor have the correct memory address to attach the driver for that same bus. As for non VirtIO not working, my fresh install of 12.0 using OVMF works OK= for both sym SCSI and em NIC. I don't have 11.2 OVMF to test upgrade. But all= of my non OVMF VMs work OK too except where Q35 + VirtIO are concerned as per = my bug report. --=20 You are receiving this mail because: You are the assignee for the bug.=