From owner-freebsd-bugs@freebsd.org Mon Apr 1 01:53:18 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 A60971572FC0 for ; Mon, 1 Apr 2019 01:53:18 +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 3E4126A720 for ; Mon, 1 Apr 2019 01:53:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F13361572FBF; Mon, 1 Apr 2019 01:53:17 +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 CAB141572FBE for ; Mon, 1 Apr 2019 01:53:17 +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 593606A71D for ; Mon, 1 Apr 2019 01:53:17 +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 9650410AE5 for ; Mon, 1 Apr 2019 01:53:16 +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 x311rGGL069002 for ; Mon, 1 Apr 2019 01:53:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x311rG8l069001 for bugs@FreeBSD.org; Mon, 1 Apr 2019 01:53:16 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 01:53:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: tommyhp2@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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 01:53:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236922 Bug ID: 236922 Summary: Virtio fails as QEMU-KVM guest with Q35 chipset on Ubuntu 18.04.2 LTS Product: Base System Version: 12.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: tommyhp2@gmail.com Created attachment 203279 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D203279&action= =3Dedit various data collection for bug report Environment: Host OS: Ubuntu 18.04.2 LTS (updated) Libvirt: (libvirt-bin) 4.0.0-1ubuntu8.8 QEMU: 1:2.11+dfsg-1ubuntu7.12 QEMU-KVM: 1:2.11+dfsg-1ubuntu7.12 Guest OS: FreeBSD 12.0-RELEASE If the VM configuration uses i440FX chipset, everything works as expected.= =20 When configured to use Q35 chipset, virtio failed to load properly and any device configured to use virtio would not be detected. Attachments within zip of data gathered from the same VM: QEMU-KVM_freebsd_virtio_1.png - screen shot of the VM configuration as se= en in virt-manager z_fbsd_q35.xml - Libvirt/QEMU XML configuration for the sa= me VM seen in the screen shot pciconf_12.0_r341666_ori.txt - output of 'pciconf -lvce' of the original kernel r341666 used during install pciconf_12.0_r345757_custom.txt - output of 'pciconf -lvce' of the kernel r345757 built from updated src sysctl.hw_r345757_custom.txt - output of 'sysctl hw' of the kernel r3457= 57 built from updated src Custom12 - kernel configuration (copy of GENERIC with unneeded drivers and configs removed) make.conf - make.conf used in building kernel r345757 src.conf - src.conf used in building kernel r345757.= =20 Buildworld was not done. Only buildkernel and installkernel. In the screen shot QEMU-KVM_freebsd_virtio_1.png, the "Controller SCSI 1" is added as SCSI controller having "Hypervisor default" model. FreeBSD detect= ed and loaded the 'sym' SCSI driver. While the "Controller Virtio SCSI 0" is a= dded as SCSI controller having "VirtIO SCSI" model. The custom kernel show the VirtIO PCI controller in pciconf but any virtio HDD attached does not show = up in /dev. How to repeat: 1) Install Ubuntu 18.04.2 desktop to support virtualization using libvirt, QEMU-KVM, and virt-manager. 2) Use virt-manager to create/import a VM 2a) Select x86_64 architecture 2b) Make sure to check "Customize configuration before install" 3a) In the popup customization window, change the chipset from i440FX to Q3= 5 in the overview. 3b) Select the HDD and change the "Disk bus" in "Advanced options" to VirtIO 3c) Select the NIC and change the "Device model" to virtio 4) Boot from imported HDD or from ISO media to install Utilizing the Q35 chipset, FreeBSD would neither boot properly nor install = when both HDD and NIC are virtio. If the HDD is SATA type and NIC is other virt= io, everything works. --=20 You are receiving this mail because: You are the assignee for the bug.=