From owner-freebsd-virtualization@freebsd.org Tue Jan 7 04:07:29 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 7C3B11F8F9B for ; Tue, 7 Jan 2020 04:07:29 +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 47sJk92nM2z4dTw for ; Tue, 7 Jan 2020 04:07:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5DA0F1F8F9A; Tue, 7 Jan 2020 04:07:29 +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 5D6701F8F99 for ; Tue, 7 Jan 2020 04:07:29 +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 47sJk91vPYz4dTv for ; Tue, 7 Jan 2020 04:07:29 +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 3CAB421252 for ; Tue, 7 Jan 2020 04:07:29 +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 00747TZ4081098 for ; Tue, 7 Jan 2020 04:07:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 00747TG0081097 for virtualization@FreeBSD.org; Tue, 7 Jan 2020 04:07:29 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 236922] Virtio fails as QEMU-KVM guest with Q35 chipset on Ubuntu 18.04.2 LTS Date: Tue, 07 Jan 2020 04:07:27 +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: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: drum@graphica.com.au X-Bugzilla-Status: Open 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: Tue, 07 Jan 2020 04:07:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236922 --- Comment #20 from John Hartley --- Hi Tommy P, thanks very much for response. Yes I am using GENERIC kernel, I did try a custom kernel removing all the unused devices but that also failed. Yes agree that issue relates to Q35. Since original posting I have done testing with Q35 with BIOS & OVMF Firmwa= re and find that with 11.3 and 12.x that VirtIO based device all fail. Unfortunately with 11.3 & 12.x all available NIC device options (not just VirtIO) also fail (e1000, e1000-82545em, rtl8130 & vmxnet3). So issue extends beyond just VirtIO based devices. It seems that between 11.2 and 11.3 there where some changes make to PCI sub-system the result of which is that the PCIe (??) enumeration if failing= to detect that NICs at all. Yesterday I tried to build a 11.3 kernel with 11.2 dev/pci code, but ended = up pulling in more code than I wanted, so likely pulled in the associated buggy commits to get kernel complied. Your tip on swapping to i440FX is worth looking at I assumed that as I have built OVMF VMs that thee would only work with Q35 as OVMF option is tied to this. I will do more building and testing later today. For my next build I will only keep dev/pci/pcireg.h file from 11.3 and wind back to 11.2 any (non PCI code)flow through changes that this breaks as par= t of this test. I am focused on pci code as Q35 is PCIe native VM and the dev/pci source tr= ee has a hold host of commit/reverts so hoping to at least be able to further isolate problem here. If I can get generic NICs enumerating then could fold in fix you have identified with VirtIO code and PCI identifiers... Thanks very much for feedback. Cheers, John Hartley. --=20 You are receiving this mail because: You are the assignee for the bug.=