From nobody Tue Feb 08 16:20:00 2022 X-Original-To: freebsd-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 E88E519A6688 for ; Tue, 8 Feb 2022 16:20:39 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JtSsz03krz3qYh for ; Tue, 8 Feb 2022 16:20:38 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-lj1-x22b.google.com with SMTP id o17so25237716ljp.1 for ; Tue, 08 Feb 2022 08:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=Bvb+7bpdH9GrHQReZpSMWxcVoCkY1/XsB6v8U2He+IE=; b=chYovDekEggZfeLTGa1j2/ymO6u+a9KmyR1fnQZp7P4smL5yJ7orUfO0PvrO3VDSF9 2rim/sdYhm83shuJSHWg0K39lKCnOPxvXlCVf/Ccrd0S93ODFfVPlaiCPWB7WtCqYBSC Zl3rjzNsWIizNqw33WxerWyKeBrkS6/LTxP3GOanjSZsAwgPAAiYDEWIxnuAneigg39F k0aiSim04UoCn5/9T2PmpiGofguqhadwcmaAWANkm8TXrKvS+cjYgqVMiD9ILjTDm9i+ 6wJnKHtD0+jgN3KCP0IGdwMgBBCEg7KaduKU1rxLZl/z25xQfPuJydB5ZgUnO9NY7qdS oOBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Bvb+7bpdH9GrHQReZpSMWxcVoCkY1/XsB6v8U2He+IE=; b=fQPWHajxdhfzp7ag/63GCE34Xtj7Dt3TQC+iJHGM9lQ8Q3u0PN7GYqvfs0IDStmA7g hN8+iKkRb8KYQeJ23Caer2/iijvMw+b8uaVLuapGCnpgJG2obyBpuJIFGHwvuzXgK6+f y1P89tcZLrygTQsTa2bFb+7PvDnHH4r0aAuOVRyNArXIP6heJJnq1ik0vyN+o/fhXtNP bQcVcgNZNTYr4DsHS9jPGMoQ0JWmagBvjimLKnPEkQPoM3ASkL7hlDw4QTLQHebGgMzC NzJ613JSQ7tvzAQmLmcTwiNjP4CK1toqdATSni2BLm75zrB2L5FdS1Z/zqeWlgo0gPbR bodw== X-Gm-Message-State: AOAM532rpBjSudZjzcRaVr002VdeIGNWasBSZqyrKDDf0MYwB8WWDzFN iiUmNSKM0JGf8F/apH9D3lm2RZY1vLhBEo1IpKxsBuMIYb4= X-Google-Smtp-Source: ABdhPJwswTrdpeHAnRsWQ6b8V4UXJGYWz+Eov8yahG5JlQNBffx1SEO+puoDGRvTkmy3yd9Csks8mPcksCQ//Vbvk4c= X-Received: by 2002:a05:651c:19a2:: with SMTP id bx34mr3299270ljb.528.1644337237081; Tue, 08 Feb 2022 08:20:37 -0800 (PST) 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 From: Mario Marietto Date: Tue, 8 Feb 2022 17:20:00 +0100 Message-ID: Subject: Multiple bugs on bhyve present on FreeBSD 13R p7 while passing thru USB controller and graphic card To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000e842dc05d78418e8" X-Rspamd-Queue-Id: 4JtSsz03krz3qYh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=chYovDek; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::22b as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [-2.41 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.51)[-0.509]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.90)[-0.901]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22b:from]; HTTP_TO_IP(1.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000e842dc05d78418e8 Content-Type: text/plain; charset="UTF-8" Hello to everyone. I'm using bhyve on FreeBSD 13R p7 and I'm trying to pass thru my usb controller and / or my graphic card while at the same time I'm trying to boot 3 operating systems (Ubuntu,Windows and FreeBSD 13) installed on a SATA and / or NVME disk using the virtio-blk driver and the ahci-hd driver. The problems that come out from this setup are different and concatenated. Anyway,those OS won't boot because it seems that the devices that I pass thru interferes with the booting process. If I don't pass thru any device,they can boot properly. In addition,my graphic card (geforce 2080 ti) seems to have an additional problem. It seems that it is not passed correctly. CASE 0) Without passing thru the usb controller and the graphic card ubuntu or windows 11 can boot properly with these parameters : bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H \ -s 0,hostbridge \ -s 1,ahci-hd,/dev/nvd0 \ -s 8,virtio-net,tap1 \ -s 29,fbuf,tcp=0.0.0.0:5901,w=1440,h=900,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -l com1,stdio \ vm1 BdsDxe: loading Boot0001 "UEFI BHYVE SATA DISK BHYVE-51F3-061F-A385" from PciRoot(0x0)/Pci(0x1,0x0)/Sata(0x0,0 xFFFF,0x0) BdsDxe: starting Boot0001 "UEFI BHYVE SATA DISK BHYVE-51F3-061F-A385" from PciRoot(0x0)/Pci(0x1,0x0)/Sata(0x0, 0xFFFF,0x0) CASE 1) Passing thru the usb controller and the graphic card and booting from a physical installation of Linux or Windows 11 on a nvme disk : bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H \ -s 0,hostbridge \ -s 1,ahci-hd,/dev/nvd0 \ -s 2,passthru,1/0/0 \ -s 3:0,passthru,2/0/0 \ -s 3:1,passthru,2/0/1 \ -s 3:2,passthru,2/0/2 \ -s 3:3,passthru,2/0/3 \ -s 8,virtio-net,tap1 \ -s 29,fbuf,tcp=0.0.0.0:5901,w=1440,h=900,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -l com1,stdio \ vm1 Sometimes Assertion failed: (error == 0), function modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_emul.c, line 501: Abort / sometimes black screen frozen CASE 2) Passing thru the usb controller and booting from a physical installation of Linux or Windows 11 on a nvme disk : bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H \ -s 0,hostbridge \ -s 1,ahci-hd,/dev/nvd0 \ -s 2,passthru,1/0/0 \ -s 8,virtio-net,tap1 \ -s 29,fbuf,tcp=0.0.0.0:5901,w=1440,h=900,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -l com1,stdio \ vm1 = BdsDxe: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-51F3-061F-A385" from PciRoot(0x0)/Pci(0x1,0x0)/Sat a(0x0,0xFFFF,0x0): Not Found CASE 3) Passing thru the graphic card and booting from a physical installation of Linux or Windows 11 on a nvme disk : bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H \ -s 0,hostbridge \ -s 1,ahci-hd,/dev/nvd0 \ -s 2:0,passthru,2/0/0 \ -s 2:1,passthru,2/0/1 \ -s 2:2,passthru,2/0/2 \ -s 2:3,passthru,2/0/3 \ -s 8,virtio-net,tap1 \ -s 29,fbuf,tcp=0.0.0.0:5901,w=1440,h=900,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -l com1,stdio \ vm1 = Assertion failed: (error == 0), function modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_emul.c, line 501 : Abort I've tried with virtio-blk instead of ahci-hd and with /dev/ada2 (sata disk) instead of the nvdm disk and nothing is changed. now,explain to me how should I make the bug report. I'm not sure,since I see two different or more bugs concatenated but I haven't the competence to report them separately. Would be better if you do it for me and then give me the links of the bugs,so I learn something more. -- Mario. --000000000000e842dc05d78418e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello to everyone.

I= 9;m using bhyve on FreeBSD 13R p7 and I'm trying to pass thru my usb co= ntroller and / or my graphic card while at the same time I'm trying to = boot 3 operating systems (Ubuntu,Windows and FreeBSD 13) installed on a SAT= A and / or NVME disk using the virtio-blk driver and the ahci-hd driver. Th= e problems that come out from this setup are different and concatenated. An= yway,those OS won't boot because it seems that the devices that I pass = thru interferes with the booting process. If I don't pass thru any devi= ce,they can boot properly. In addition,my graphic card (geforce 2080 ti) se= ems to have an additional problem. It seems that it is not passed correctly= .

CASE 0) Without passing thru the usb contro= ller and the=20 graphic card ubuntu or windows 11 can boot properly with these=20 parameters :

bhyve -S -c sockets= =3D1,cores=3D2,threads=3D2 -m 4G -w -H \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/nvd0 \
-s 8,virtio-net,tap1 \
-s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1440,h=3D900,w= ait \
-s 30,xhci,t= ablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-l com1,stdio \
vm1

BdsDxe: loading Boot0001 &= quot;UEFI BHYVE SATA DISK BHYVE-51F3-061F-A385" from PciRoot(0x0)/Pci(= 0x1,0x0)/Sata(0x0,0
xFFFF,0x0)
BdsDxe: starting Boot0001 "UEFI BHYVE SATA DISK BHYVE-51F3-061F-A3= 85" from PciRoot(0x0)/Pci(0x1,0x0)/Sata(0x0,
0xFFFF,0x0)

CASE 1) = Passing thru the usb controller and the graphic card and booting from a=20 physical installation of Linux or Windows 11 on a nvme disk :

<= span style=3D"font-family:monospace">bhyve -S -c sockets=3D1,cores=3D2,threads=3D2 = -m 4G -w -H \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/nvd0 \
-s 2,passthru,1/0/0 \
-s 3:0,passthru,2/0/0 \
-s 3:1,passthru,2/0/1 \
-s 3:2,passthru,2/0/2 \
-s 3:3,passthru,2/0/3 \
-s 8,virtio-net,tap1 \
-s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1440,h= =3D900,wait \
-s 30,xhci,t= ablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-l com1,stdio \
vm1

Sometimes Assertio= n failed: (error =3D=3D 0), function modify_bar_registration, file /usr/src= /usr.sbin/bhyve/pci_emul.c, line 501: Abort / sometimes black screen= frozen

CASE 2) Passing thru the us= b controller and booting from a physical installation of Linux or Windows 1= 1 on a nvme disk :

bhyve -S -c sockets=3D1,cores=3D2,threads=3D2 -= m 4G -w -H \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/nvd0 \
-s 2,passthru,1/0/0 \
-s 8,virtio-net,tap1 \
-s 29,fbuf= ,tcp=3D0.0.0.0:5901,w= =3D1440,h=3D900,wait \=C2=A0
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-l com1,stdio \
vm1

=3D BdsDxe: failed to load Boot0001 "= ;UEFI BHYVE SATA DISK BHYVE-51F3-061F-A385" from PciRoot(0x0)/Pci(0x1,= 0x0)/Sat
a(0x0,0xFFFF,0x0): Not Found
=

CASE 3) Passing thru the graphic card and booting = from a physical installation of Linux or Windows 11 on a nvme disk :=

bhyve -S -c sockets=3D1,cores= =3D2,threads=3D2 -m 4G -w -H \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/nvd0 \
-s 2:0,passthru,2/0/0 \
-s 2:1,passthru,2/0/1 \
-s 2:2,passthru,2/0/2 \
-s 2:3,passthru,2/0/3 \

-s 8,virtio-net,tap1 \
-s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1440,h= =3D900,wait \=C2=A0
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-l com1,stdio \
vm1

=3D Asse= rtion failed: (error =3D=3D 0), function modify_bar_registration, file /usr= /src/usr.sbin/bhyve/pci_emul.c, line 501 : Abort

I've tried with vir= tio-blk instead of ahci-hd and with /dev/ada2=20 (sata disk) instead of the nvdm disk and nothing is changed. now,explain to me how should I make the bug report. I'm not sure,since I see two= =20 different or more bugs concatenated but I haven't the competence to=20 report them separately. Would be better if you do it for me and then=20 give me the links of the bugs,so I learn something more.

--
<= div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature= ">Mario.
--000000000000e842dc05d78418e8--