From nobody Thu Feb 03 10:50:06 2022 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3900819AD024 for ; Thu, 3 Feb 2022 10:50:07 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JqFmv0R6tz4Zf5 for ; Thu, 3 Feb 2022 10:50:07 +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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D4FBF165AD for ; Thu, 3 Feb 2022 10:50: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 213Ao6gJ067248 for ; Thu, 3 Feb 2022 10:50:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 213Ao6ca067247 for virtualization@FreeBSD.org; Thu, 3 Feb 2022 10:50: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 260178] bhyve: passthru makes ahci-hd boot fail Date: Thu, 03 Feb 2022 10:50:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: bhyve X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643885407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vUagy8jNVrQhsd2/hYlfQ7WWCU6p4hw+2ZGh0pn3xDw=; b=W05v06gb6gCkwU9pFeTKTcdIiW4ix6I+Rfyhb6vGc1x8QLSizigqjssK+SQvRBnViCAN5E Q7VlCi+w/9lLv8qKW+QdUsZ8pajZoWxxRORYlLhdCsFhYV/Nlic+7sMA4z11GYYbmY63yH GmzjE+5FhSUqHJqHExgS8GTx/Wl5leWKumvcIkhBAYodBK4k6EJJhb8XCEo8DeurdUWODM YIsOms0pWCr4ZgFuzRdfZ8tWFyC2x76ScTssceL8gy2CP5VVg6NKgJ4EeTlPhX7gVIcwbT aO6grLgucXOvbhQLuvl0r1VSe6iI3Ny9/GtUFc8E0yQkcP6cCdgRglY77DQNWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643885407; a=rsa-sha256; cv=none; b=y1kNvSFo4AHnlCONAWnXLrtd2I0pc+TCzFhuNaMELNDgxCod+DpOC25KI3fGjGELSeNdAU mwsYJmTj8rLA+vL3hTi9u8Zjh9OOEMCbkWpMDyTm0poDv5vs094JcUD92tB4VJHnEu7bqx w6fkGnuAi1QX97oX3SPZL95ALoELTym8ppSLtFagYPMraZ3P7FXVB/9A9ynrySE7UxQaF5 zHgXeD/eUEE7y8tRjgJ/XNGMv6+oJRu2SriMSPa8zHN8J7TL/HUeJubf8IhD9fgaRNpKRN WUxzdba0/g9tS/0r03NCJMxTs6PO0Zorlpf+q2x5LVQd76TS/LbwazcPwUnBSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260178 mario felicioni changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marietto2008@gmail.com --- Comment #3 from mario felicioni --- I have your exact problem when I try to boot a linux / windows / freebsd gu= est os installed physically on a sata or usb disk (it makes no difference) with every version of bhyve (the corvin's bhyve and also bhyve present on freebsd 14,while the most updated version present on FreeBSD 13R the passthrough do= es not start at all). So,I've created some cases to show you in a incontrovert= ible way that the passthrough of any device (I tried with my nvidia geforce RTX = 2080 ti and with my USB renesas controller),interferes with the booting of any OS installed physically on the disks. it happens if I use virtio-blk and also ahci-hd. If I use virtio-blk I have an additional problem,in addition to the fact that the passthrough does not work,without passthrough,at some point t= he VM can't load the root partition,while using ahci-hd it can). case 1) bhyve -S -c sockets=3D1,cores=3D2,threads=3D2 -m 4G -w -H \ -s 0,hostbridge \ -s 1,virtio-blk,/dev/da1 \ -s 2:0,passthru,2/0/0,rom=3DTU102.rom \ -s 31,lpc \ -l com1,stdio \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 -l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \ vm1 =3D NO (da1 with freebsd 14 installed does not boot) case 2) bhyve -S -c sockets=3D1,cores=3D2,threads=3D2 -m 4G -w -H \ -s 0,hostbridge \ -s 1,virtio-blk,/dev/da1 \ -s 31,lpc \ -l com1,stdio \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 -l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \ vm1 =3D yes. case 3) bhyve -s 0,hostbridge \ -s 1,virtio-blk,/dev/da1 \ -s 31,lpc \ -l com1,stdio \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \ vm1 =3D yes case 4) bhyve -S -s 0,hostbridge \ -s 1,virtio-blk,/dev/da1 \ -s 31,lpc \ -l com1,stdio \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \ vm1 =3D yes case 5) bhyve -S -s 0,hostbridge \ -s 1,virtio-blk,/dev/da1 \ -s 2:0,passthru,2/0/0,rom=3DTU102.rom \ -s 31,lpc \ -l com1,stdio \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \ vm1 =3D no --=20 You are receiving this mail because: You are the assignee for the bug.=