From nobody Mon Mar 14 12:32:57 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 13A2C1A0C07A for ; Mon, 14 Mar 2022 12:32:58 +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 4KHGCY5h32z4s48 for ; Mon, 14 Mar 2022 12:32:57 +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 A3B7658A4 for ; Mon, 14 Mar 2022 12:32:57 +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 22ECWve8034981 for ; Mon, 14 Mar 2022 12:32:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22ECWvhI034980 for virtualization@FreeBSD.org; Mon, 14 Mar 2022 12:32:57 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: Mon, 14 Mar 2022 12:32:57 +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: In Progress 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 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=1647261177; 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=mwAicN97NTXZRay6frB/XKi1x7waN+Q2ZQfkPHq9C1Y=; b=JtJGt5CakDHfzc/is6oedXm9VnKSfj/R76F5+ognl/HDg0eAjJJca3eNivB/2X800fe61H q080J0NmLIDCz1/lkoWuAWhgdM98EgtZLM+RVshxW2tzZ7hh0KVh9xSgW+vpdjA+fl0qII YDKObNfvOaXyTIN2d+Jfga9Gy44MqwvgvfqIoi4luF9WPXCgQih+NMZ3h2sCiO0Dt4tvJZ 9w83ZsIK47+GUdsKRiggJ0MyoH7rg/K7cP6hjjOEnRh1YL8q43Lqw6RVxrbvi9I9h3Rxlw LpZGtmD+VKDpz4svq/snWTvmaUjvSC1JOKeHbBN4Iye+4xQ74m5EtLDs82ZJwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647261177; a=rsa-sha256; cv=none; b=M/CRZDvoFGB8wQD7IfV7ro66ZvpNOzDLE4f7eDJ0scEGVqEnyhBLy8R7QaY3VXELzvCe2W ERsgOfSZLbBrFaqm5nbc4q9HRVf8Hjl5vF2mXpU6vF7YCk7s1YbofTtK28H6tj1BKGb/vZ yi3b4UxW0xnVunr9whbUKo2/D4GKWn8D5vugD4qcJD3KC7CQkLjdwgCGXttamignPAQMWU 20H0Pd3XA7ZvwbHiVknbtNTsZ1cl1tLeFfOQgTSePfWG2eGfhVcfyGu4HCat2Yn2qUltL4 XXpTXXs/RSuZnmYKmtkUq2tftymRGfrSdfMo7Ox68Fc9eo/qrFfpKlN9e3Wbrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260178 --- Comment #10 from mario felicioni --- What I want to achieve is to pass thru two of my NTFS "formatted" disks to a Windows 11 VM,but *WITHOUT* passing them thru using the USB controller in FreeBSD with a bhyve virtual machine (in the example below I tried to boot Windows 11 from the nvme disk nvd0) AT at the same time I want to pass thru= my graphic card to a Windows 11 and / or Linux VM. I'm using this FreeBSD version : FreeBSD marietto 13.0-RELEASE FreeBSD 13.0-RELEASE #5 n244809-dff3dead3734:= Wed Feb 23 13:16:32 CET 2022 marietto@marietto:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 I've configured the bhyve VM like this : bhyve -S -c sockets=3D1,cores=3D2,threads=3D2 -m 4G -w -H -A \ -s 0,hostbridge \ -s 1,ahci-hd,/dev/nvd0 \ -s 2,virtio-blk,/dev/da4 \ -s 3,virtio-blk,/dev/da2 \ -s 4:0,passthru,2/0/0 \ -s 4:1,passthru,2/0/1 \ -s 4:2,passthru,2/0/2 \ -s 4:3,passthru,2/0/3 \ -s 8,virtio-net,tap2 \ -s 9,virtio-9p,sharename=3D/ \ -s 10,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ -s 29,fbuf,tcp=3D0.0.0.0:5902,w=3D1440,h=3D900 \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \ vm2 < /dev/null & sleep 2 && vncviewer 0:2 These are the NTFS disks that I would like to see inside the Windows 11 gue= st os : -s 2,virtio-blk,/dev/da4 \ -s 3,virtio-blk,/dev/da2 \ =3D> 34 19532873661 da4 GPT (9.1T) 34 32734 1 ms-reserved (16M) 32768 19532838912 2 ms-basic-data (9.1T) 19532871680 2015 - free - (1.0M) =3D> 34 23437705149 da2 GPT (11T) 34 2014 - free - (1.0M) 2048 23437701120 1 ms-basic-data (11T) 23437703168 2015 - free - (1.0M) Using the whole disks in bhyve they are recognized by fdisk. But as I said,= what matters a lot for me,is to boot the nvme physical disk passing through at t= he same time my graphic card but it does not work. I care so much about this feature,because Ubuntu boots much much faster if I use the physical disk instead of the img / raw file. And this is again more valid if I want to bo= ot Windows 11. It gets frozen e if I use a raw / img disk. I can't use it. But= if I use the nvme disk where I have installed it physically it is much,much fa= ster and I can use it. This is what happens : (linux and windows 11 installed on the disk nvme don= 't boot) https://forums.freebsd.org/attachments/screenshot_2022-03-13_16-35-42-jpg.1= 3323/ I will keep the discussion updated also here : https://forums.freebsd.org/threads/usb-3-0-disks-not-recognized-by-windows-= if-passed-through-as-slots.84402/#post-559892 --=20 You are receiving this mail because: You are the assignee for the bug.=