From nobody Fri Feb 4 21:02:39 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 50BF9198DD6A for ; Fri, 4 Feb 2022 21:02:39 +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 4Jr7KB6zt3z4xrJ for ; Fri, 4 Feb 2022 21:02:38 +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 D00ED12D8E for ; Fri, 4 Feb 2022 21:02:38 +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 214L2cWC001952 for ; Fri, 4 Feb 2022 21:02:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 214L2ce1001951 for virtualization@FreeBSD.org; Fri, 4 Feb 2022 21:02:38 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 261724] Assertion failed: (baridx == 0), function pci_fbuf_write, file /usr/src/usr.sbin/bhyve/pci_fbuf.c, line 134 / Assertion failed: (pi->pi_bar[baridx].type == PCIBAR_IO), function passthru_read, file /usr/src/usr.sbin/bhyve/pci_passthru.c, line 942 Date: Fri, 04 Feb 2022 21:02:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 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=1644008559; 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; bh=5SFDRRvXI5RJ1Zx9RxSW46BCNO7FVMvTWKUq9BrYgTI=; b=A7eXd+fZZI7u3BzsroxJMDzdVc9kwFU+R3s7m6nwJOB06txy+C7e/UZFbvlLCFyuBOyDoa ZB4ILTa/KyQrxfweIEFstgz1JyiK5k+BPCWHnYYU8XHBtXyzUU9MaOwDEIyw+4OE1YHedX gO512R0NeoKdM+IpkByavqysN31tDX6Nisypx6PLxSoVBt4u5VmxuV3OQnFQr7UP9E62mw 0RQBUwWQC5EgS+QJnUbwjDnQxY+TwsLtA6nMGaZcIcnSKkn+IfmI3vYEc1Jp8uTMvyqO0Z c75xJeXI+Q6bkrDt6t/j2YP97Zoa0s80h7k5h82rAfndayjWpg25y9lnMWkoYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644008559; a=rsa-sha256; cv=none; b=ocDbsbHg2azAvztQeP6oMPJX99bdEv9Sgv4JRdHsNSaMgyc/nYQetfAN63ykJxmj3UgKrF 1/pnn75jIT6mslbRArAtZ2aCQ7wMAfnVQJEvUsE3e7wmD/v9zfd81kOhi0hYP0EkZA9NJ/ VHRA3m8syh+wxkcZ7I7YerGrYPGJgnXvXKvhyLoHCXT9dwgzAZPZcT7kZNjvrdOk2/bpIW m19TjfVLfE2OHVCNCQzAqunGe7+yDJ5fZq71cT6U5sAHX7f3FjLP6ZmmNJ/BWMi6XAa1tJ cK+OWF85+lK9RuX+TJveiEJm9CdX08z3a/srE9JOExUgLhjoe0kI8HbjSA4grg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261724 Bug ID: 261724 Summary: Assertion failed: (baridx =3D=3D 0), function pci_fbuf_write, file /usr/src/usr.sbin/bhyve/pci_fbuf.c, line 134 / Assertion failed: (pi->pi_bar[baridx].type =3D=3D PCIBAR_IO), function passthru_read, file /usr/src/usr.sbin/bhyve/pci_passthru.c, line 942 Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: marietto2008@gmail.com Hello. When I try to boot a linux / windows / freebsd guest os installed physicall= y on a sata or usb disk (it makes no difference) with bhyve on FreeBSD 13R. So,I= 've created some cases to show you in a incontrovertible way that the passthrou= gh 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 physica= lly 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 the VM can't lo= ad the root partition,while using ahci-hd it can). In addition to this,when I enable and disable the framebuffer,I get two additional errors,explained on= the title. 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 I've passed through the graphic card and the renesas controller (because th= ey are on the same IOMMU group) and I've got a precise bug : This command : bhyve -S -c sockets=3D1,cores=3D2,threads=3D2 -m 4G -w -H -A \ -s 0,hostbridge \ -s 1,ahci-hd,/dev/da1,sectorsize=3D512 \ -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 4:0,passthru,1/0/0 \ -s 8,virtio-net,tap1 \ -s 9,virtio-9p,sharename=3D/ \ -s 30,xhci,tablet \ -s 31,lpc \=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=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 -s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1440,h=3D900 \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \ -l com1,stdio \ vm1 produces this error : root@marietto:/usr/home/marietto/bhyve # ./freebsd14.sh VM:vm0 is not created. VM:vm1 is not created. VM:vm0 is not created. VM:vm1 is not created. fbuf frame buffer base: 0x945e00000 [sz 16777216] Assertion failed: (baridx =3D=3D 0), function pci_fbuf_write, file /usr/src/usr.sbin/bhyve/pci_fbuf.c, line 134 Abort : core dumped. this is what happens without the framebuffer defined in bhyve :=20 Assertion failed: (pi->pi_bar[baridx].type =3D=3D PCIBAR_IO), function passthru_read, file /usr/src/usr.sbin/bhyve/pci_passthru.c, line 942. I think that here there are some concatenated bugs. --=20 You are receiving this mail because: You are the assignee for the bug.=