From owner-freebsd-bugs@freebsd.org Mon Apr 1 08:02:25 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C79A51593EF5 for ; Mon, 1 Apr 2019 08:02:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 574128AE11 for ; Mon, 1 Apr 2019 08:02:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1302E1593EED; Mon, 1 Apr 2019 08:02:25 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2E3C1593EEC for ; Mon, 1 Apr 2019 08:02:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DB848AE0D for ; Mon, 1 Apr 2019 08:02:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C51BB1409A for ; Mon, 1 Apr 2019 08:02:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x3182NL8069060 for ; Mon, 1 Apr 2019 08:02:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x3182Nn3069057 for bugs@FreeBSD.org; Mon, 1 Apr 2019 08:02:23 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: bugs@FreeBSD.org Subject: [Bug 236922] Virtio fails as QEMU-KVM guest with Q35 chipset on Ubuntu 18.04.2 LTS Date: Mon, 01 Apr 2019 08:02:23 +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: tommyhp2@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Apr 2019 08:02:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236922 --- Comment #6 from Tommy P --- Upon further investigation, I did a quick and dirty hack of the source code: pci/virtio_pci.c:247:/* if (pci_get_revid(dev) !=3D VIRTIO_PCI_ABI_VERSION)= */ pci/virtio_pci.c:248: if (pci_get_revid(dev) !=3D VIRTIO_PCI_ABI_VERSION_= MIN && pci/virtio_pci.c:249: pci_get_revid(dev) !=3D VIRTIO_PCI_ABI_VERSION_= MAX) pci/virtio_pci.h:47:/* #define VIRTIO_PCI_ABI_VERSION 0 */ pci/virtio_pci.h:48:#define VIRTIO_PCI_ABI_VERSION_MIN 0 pci/virtio_pci.h:49:#define VIRTIO_PCI_ABI_VERSION_MAX 1 and rebuilt the kernel. Upon reboot with the modified source codes of virtio_pci.* the virtio driver still didn't load but I got this in dmesg: virtio_pci0: mem 0xfce00000-0xfce00fff,0xfea00000-0xfea03fff irq 22 at device 0.0 on pci1 virtio_pci0: cannot map I/O space device_attach: virtio_pci0 attach returned 6 pcib2: mem 0xfd013000-0xfd013fff irq 22 at device 2.1 on p= ci0 pci2: on pcib2 virtio_pci0: mem 0xfcc00000-0xfcc00fff,0xfe800000-0xfe803fff irq 22 at device 0.0 on pci2 virtio_pci0: cannot map I/O space device_attach: virtio_pci0 attach returned 6 pcib3: mem 0xfd014000-0xfd014fff irq 22 at device 2.2 on p= ci0 pci3: on pcib3 virtio_pci0: mem 0xfe600000-0xfe603fff irq 22 = at device 0.0 on pci3 virtio_pci0: cannot map I/O space device_attach: virtio_pci0 attach returned 6 pcib4: mem 0xfd015000-0xfd015fff irq 22 at device 2.3 on p= ci0 pci4: on pcib4 virtio_pci0: mem 0xfc880000-0xfc880fff,0xfe400000-0xfe403fff irq 22 at device 0.0 on pci4 virtio_pci0: cannot map I/O space device_attach: virtio_pci0 attach returned 6 pcib5: mem 0xfd016000-0xfd016fff irq 22 at device 2.4 on p= ci0 pci5: on pcib5 virtio_pci0: mem 0xfc600000-0xfc600fff,0xfe200000-0xfe203fff irq 22 at device 0.0 on pci5 virtio_pci0: cannot map I/O space device_attach: virtio_pci0 attach returned 6 Looks like a lot more needed than my quick dirty hack and way beyond my knowledge of FreeBSD kernel :(. --=20 You are receiving this mail because: You are the assignee for the bug.=