[Bug 260178] bhyve: passthru makes ahci-hd boot fail

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 04 Feb 2022 18:56:30 UTC

--- Comment #4 from mario felicioni <marietto2008@gmail.com> ---
I've passed through the graphic card and the renesas controller (because they
are on the same IOMMU group) and I've got a precise bug :

This command :

bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H -A \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/da1,sectorsize=512 \
-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=/ \
-s 30,xhci,tablet \
-s 31,lpc \                                                      
-s 29,fbuf,tcp=,w=1440,h=900 \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \
-l com1,stdio \

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 == 0), function pci_fbuf_write, file
/usr/src/usr.sbin/bhyve/pci_fbuf.c, line 134

Abort : core dumped.

You are receiving this mail because:
You are the assignee for the bug.