From owner-freebsd-virtualization@freebsd.org Fri Jan 10 06:25:23 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 D76E22253E2 for ; Fri, 10 Jan 2020 06:25:23 +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 47vCdv5SNYz4FM6 for ; Fri, 10 Jan 2020 06:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B97C82253E1; Fri, 10 Jan 2020 06:25:23 +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 B94042253E0 for ; Fri, 10 Jan 2020 06:25:23 +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 47vCdv4c09z4FM5 for ; Fri, 10 Jan 2020 06:25:23 +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 99863DCE3 for ; Fri, 10 Jan 2020 06:25:23 +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 00A6PNgQ083687 for ; Fri, 10 Jan 2020 06:25:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 00A6PNVg083674 for virtualization@FreeBSD.org; Fri, 10 Jan 2020 06:25: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: virtualization@FreeBSD.org Subject: [Bug 241774] FreeBSD 11.3 & 12.0 has broken SCSI & Networking on KVM/QEMU Q35 with OVMF Date: Fri, 10 Jan 2020 06:25: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: 11.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: drum@graphica.com.au 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: Fri, 10 Jan 2020 06:25:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241774 --- Comment #22 from John Hartley --- (In reply to Vincenzo Maffione from comment #21) Hi Vincenzo, thank you very much of for responding. My testing has been to try to isolate where the problems lies. The issues appears when you go from 11.2 -> 11.3 . As the problem relates to device detection / initialisation, my initial tho= ught was that problem might be in PCI/PCIe code. To test this I tried to create a custom 11.3 kernel with 11.2 PCI subsystem. The impact of regression to 11.2 PCI was that I also had to regress netmap, network and driver code back to 11.2 as well. The resulting 11.3 (with 11.2 pci / networking) kernel no longer had the is= sue (ie e1000, vmxnet3 & rtl8139 all working ok) So I then rolled forward the pci code back to 11.3 . Again testing worked with each of e1000, vmxnet3 & rtl8139 working. So this seemed to have issue as being in netmap or drivers ... In looking at record of code updates, the netmap related changes (refactori= ng etc) and adding support for netmap in e1000 & vmxnet3 drivers all related to MFC r339639 (which I believe was big upstream netmap alignment and refactoring). So right now I have not confirmed that the bug is in netmap, but it might b= e... On a related front this VirtIO bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236922 required changes= to both VirtIO driver and netmap. Right now I am a bit stuck in finding the defect, as netmap and driver code= is more complex and requires deeper understand than I have. My objective was j= ust try to pin point where the problem was. Having looked at this I now have a much greater appreciation of what the dev/netmap code does and why it impacts such a large portion of network cod= e. On my working 11.3 / 11.2 custom kernel here is dmesg result from em0: em0: port 0x9000-0x903f= mem 0xc8600000-0xc861ffff irq 23 at device 1.0 on pci2 em0: Ethernet address: 52:54:00:4e:50:91 em0: netmap queues/slots: TX 1/256, RX 1/256 So it appears that netmap is enabled by default. The only configuration I have done is set DHCP on: # cat /etc/rc.conf clear_tmp_enable=3D"YES" ... ifconfig_em0=3D"DHCP" local_unbound_enable=3D"YES" sshd_enable=3D"YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev=3D"AUTO" Right now I have not managed to get problem isolated so specific code item.= .. Your advise on helping to get to the bottom of problem would be appreciated. Cheers, John Hartley --=20 You are receiving this mail because: You are the assignee for the bug.=