From owner-freebsd-virtualization@freebsd.org Mon Jan 13 19:00:06 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 9C4321E8B69 for ; Mon, 13 Jan 2020 19:00:06 +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 47xNFL3fgdz43Fg for ; Mon, 13 Jan 2020 19:00:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7B78D1E8B64; Mon, 13 Jan 2020 19:00:06 +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 7B3611E8B62 for ; Mon, 13 Jan 2020 19:00:06 +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 47xNFL2hp7z43Fd for ; Mon, 13 Jan 2020 19:00:06 +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 576F092BE for ; Mon, 13 Jan 2020 19:00:06 +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 00DJ06vj011620 for ; Mon, 13 Jan 2020 19:00:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 00DJ06LC011619 for virtualization@FreeBSD.org; Mon, 13 Jan 2020 19:00:06 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: Mon, 13 Jan 2020 19:00:04 +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: Mon, 13 Jan 2020 19:00:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236922 --- Comment #36 from John Hartley --- (In reply to Tommy P from comment #24) Hi Tommy, now I have networking workaround (disable netmap), I finally did update of = my 12.0 VM to 12.1 and applied the VirtIO patch. I successfully getting Virto devices in my PCI-e config: # pciconf -lcve=20 hostb0@pci0:0:0:0: class=3D0x060000 card=3D0x11001af4 chip=3D0x29c0808= 6 rev=3D0x00 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82G33/G31/P35/P31 Express DRAM Controller' class =3D bridge subclass =3D HOST-PCI vgapci0@pci0:0:1:0: class=3D0x030000 card=3D0x11001af4 chip=3D0x01001b3= 6 rev=3D0x04 hdr=3D0x00 vendor =3D 'Red Hat, Inc.' device =3D 'QXL paravirtual graphic card' class =3D display subclass =3D VGA pcib1@pci0:0:2:0: class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3= 6 rev=3D0x00 hdr=3D0x01 vendor =3D 'Red Hat, Inc.' device =3D 'QEMU PCIe Root port' class =3D bridge subclass =3D PCI-PCI cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) slot 0 power limit 0 mW HotPlug(present) surprise Attn But= ton PC(on) EI(disengaged) cap 11[48] =3D MSI-X supports 1 message Table in map 0x10[0x0], PBA in map 0x10[0x800] cap 0d[40] =3D PCI Bridge card=3D0x00001b36 ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected ecap 000d[148] =3D ACS 1 pcib3@pci0:0:2:1: class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3= 6 rev=3D0x00 hdr=3D0x01 vendor =3D 'Red Hat, Inc.' device =3D 'QEMU PCIe Root port' class =3D bridge subclass =3D PCI-PCI cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) slot 0 power limit 0 mW HotPlug(present) surprise Attn But= ton PC(on) EI(disengaged) cap 11[48] =3D MSI-X supports 1 message Table in map 0x10[0x0], PBA in map 0x10[0x800] cap 0d[40] =3D PCI Bridge card=3D0x00001b36 ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected ecap 000d[148] =3D ACS 1 pcib4@pci0:0:2:2: class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3= 6 rev=3D0x00 hdr=3D0x01 vendor =3D 'Red Hat, Inc.' device =3D 'QEMU PCIe Root port' class =3D bridge subclass =3D PCI-PCI cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) slot 0 power limit 0 mW HotPlug(present) surprise Attn But= ton PC(on) EI(disengaged) cap 11[48] =3D MSI-X supports 1 message Table in map 0x10[0x0], PBA in map 0x10[0x800] cap 0d[40] =3D PCI Bridge card=3D0x00001b36 ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected ecap 000d[148] =3D ACS 1 pcib5@pci0:0:2:3: class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3= 6 rev=3D0x00 hdr=3D0x01 vendor =3D 'Red Hat, Inc.' device =3D 'QEMU PCIe Root port' class =3D bridge subclass =3D PCI-PCI cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) slot 0 power limit 0 mW HotPlug(present) surprise Attn But= ton PC(on) EI(disengaged) cap 11[48] =3D MSI-X supports 1 message Table in map 0x10[0x0], PBA in map 0x10[0x800] cap 0d[40] =3D PCI Bridge card=3D0x00001b36 ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected ecap 000d[148] =3D ACS 1 pcib6@pci0:0:2:4: class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3= 6 rev=3D0x00 hdr=3D0x01 vendor =3D 'Red Hat, Inc.' device =3D 'QEMU PCIe Root port' class =3D bridge subclass =3D PCI-PCI cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) slot 0 power limit 0 mW HotPlug(present) surprise Attn But= ton PC(on) EI(disengaged) cap 11[48] =3D MSI-X supports 1 message Table in map 0x10[0x0], PBA in map 0x10[0x800] cap 0d[40] =3D PCI Bridge card=3D0x00001b36 ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected ecap 000d[148] =3D ACS 1 uhci0@pci0:0:29:0: class=3D0x0c0300 card=3D0x11001af4 chip=3D0x2934808= 6 rev=3D0x03 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801I (ICH9 Family) USB UHCI Controller' class =3D serial bus subclass =3D USB uhci1@pci0:0:29:1: class=3D0x0c0300 card=3D0x11001af4 chip=3D0x2935808= 6 rev=3D0x03 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801I (ICH9 Family) USB UHCI Controller' class =3D serial bus subclass =3D USB uhci2@pci0:0:29:2: class=3D0x0c0300 card=3D0x11001af4 chip=3D0x2936808= 6 rev=3D0x03 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801I (ICH9 Family) USB UHCI Controller' class =3D serial bus subclass =3D USB ehci0@pci0:0:29:7: class=3D0x0c0320 card=3D0x11001af4 chip=3D0x293a808= 6 rev=3D0x03 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801I (ICH9 Family) USB2 EHCI Controller' class =3D serial bus subclass =3D USB isab0@pci0:0:31:0: class=3D0x060100 card=3D0x11001af4 chip=3D0x2918808= 6 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801IB (ICH9) LPC Interface Controller' class =3D bridge subclass =3D PCI-ISA ahci0@pci0:0:31:2: class=3D0x010601 card=3D0x11001af4 chip=3D0x2922808= 6 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode]' class =3D mass storage subclass =3D SATA cap 05[80] =3D MSI supports 1 message, 64 bit enabled with 1 message cap 12[a8] =3D SATA Index-Data Pair none0@pci0:0:31:3: class=3D0x0c0500 card=3D0x11001af4 chip=3D0x2930808= 6 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801I (ICH9 Family) SMBus Controller' class =3D serial bus subclass =3D SMBus pcib2@pci0:1:0:0: class=3D0x060400 card=3D0x00000000 chip=3D0x000e1b3= 6 rev=3D0x00 hdr=3D0x01 vendor =3D 'Red Hat, Inc.' class =3D bridge subclass =3D PCI-PCI cap 05[8c] =3D MSI supports 1 message, 64 bit, vector masks=20 cap 01[84] =3D powerspec 3 supports D0 D3 current D0 cap 10[48] =3D PCI-Express 2 PCI bridge max data 128(128) ARI disabled link x1(x1) speed 2.5(2.5) ASPM disabled(L0s) cap 0c[40] =3D unknown ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected vmx0@pci0:2:1:0: class=3D0x020000 card=3D0x07b015ad chip=3D0x07b015a= d rev=3D0x01 hdr=3D0x00 vendor =3D 'VMware' device =3D 'VMXNET3 Ethernet Controller' class =3D network subclass =3D ethernet cap 11[9c] =3D MSI-X supports 25 messages, enabled Table in map 0x18[0x0], PBA in map 0x18[0x1000] cap 05[84] =3D MSI supports 1 message, 64 bit=20 em0@pci0:2:2:0: class=3D0x020000 card=3D0x11001af4 chip=3D0x100e8086 rev=3D= 0x03 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82540EM Gigabit Ethernet Controller' class =3D network subclass =3D ethernet re0@pci0:2:3:0: class=3D0x020000 card=3D0x11001af4 chip=3D0x813910ec rev=3D= 0x20 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL-8100/8101L/8139 PCI Fast Ethernet Adapter' class =3D network subclass =3D ethernet vtpcim0@pci0:3:0:0: class=3D0x010000 card=3D0x11001af4 chip=3D0x10421af= 4 rev=3D0x01 hdr=3D0x00 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio block device' class =3D mass storage subclass =3D SCSI cap 11[dc] =3D MSI-X supports 2 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) vtpcim1@pci0:4: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 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:5:0:0: class=3D0x00ff00 card=3D0x11001af4 chip=3D0x10451af= 4 rev=3D0x01 hdr=3D0x00 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio memory balloon' class =3D old 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) vtpcim3@pci0:6:0:0: class=3D0x010000 card=3D0x11001af4 chip=3D0x10421af= 4 rev=3D0x01 hdr=3D0x00 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio block device' class =3D mass storage subclass =3D SCSI cap 11[dc] =3D MSI-X supports 2 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) I was able to easily flip my Q35 SATA based 12.1 to VirtIO SCSI by editing /etc/fstab and change SATA ada0p2, atap3 ... to SCSI da0p2, da01p3 ... Simillary if I wanted to flip to direct VirtIO (rather than via VirtIO SCSI) you need to edit your /etc/fstab mounts to use vtbd0p2, vtbd0p3 etc So happy to report that VirtIO patch worked for me with 12.1 rebuilt kernel. NOTE: the partition numbering here is due to using OVMF which results in FA= T32 EFI partition always being on p1 hence root is on p2 in my case. Thanks again for hard work. Cheers, John Hartley. --=20 You are receiving this mail because: You are the assignee for the bug.=