Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Dec 2025 14:36:55 +0100
From:      Lars Engels <lme@FreeBSD.org>
To:        virtualization@FreeBSD.org
Subject:   bhyve regression: Passthru broken on 15
Message-ID:  <b7ugn3xwfddzq5nf2kwbkfzqigoij4khys4wnvefckdapjhjcm@tlrzkicwxycx>

index | next in thread | raw e-mail

I am running a Linux Home Assistant VM inside bhyve. The host's xHCI Controller
is passed through to the VM. Attached to one of the USB ports is a Zigbee USB
dongle.
After upgrading from 14.3 to 15.0 the guest sees the controller but no device
attached. `lsusb` hangs forever.
Also nothing visible when I remove and re-plug the USB dongle.

When I boot the 14.3 boot environment everything is working fine again.



=== Host ===

# dmesg | grep ^CPU
CPU: Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz (2500.00-MHz K8-class CPU)
# pciconf -lv | grep -A4 ppt0
ppt0@pci0:0:20:0:       class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x8086 device=0xa2af subvendor=0x103c subdevice=0x829a
    vendor     = 'Intel Corporation'
    device     = '200 Series/Z370 Chipset Family USB 3.0 xHCI Controller'
    class      = serial bus
    subclass   = USB
# grep ppt /boot/loader.conf
pptdevs="0/20/0"
# vm passthru
DEVICE     BHYVE ID     READY        DESCRIPTION
hostb0     0/0/0        No           Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
vgapci0    0/2/0        No           HD Graphics 530
ppt0       0/20/0       Yes          200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
none0      0/20/2       No           200 Series PCH Thermal Subsystem
ahci0      0/23/0       No           200 Series PCH SATA controller [AHCI mode]
pcib1      0/29/0       No           200 Series PCH PCI Express Root Port
isab0      0/31/0       No           200 Series PCH LPC Controller (Q270)
none1      0/31/2       No           200 Series/Z370 Chipset Family Power Management Controller
hdac0      0/31/3       No           200 Series PCH HD Audio
ichsmb0    0/31/4       No           200 Series/Z370 Chipset Family SMBus Controller
em0        0/31/6       No           Ethernet Connection (5) I219-LM
nvme0      1/0/0        No           P1 NVMe PCIe SSD[Frampton2]
# EDITOR=cat vm configure hass
loader="uefi"
cpu="4"
memory="4GB"
network0_type="virtio-net"
network0_switch="public"
disk0_type="nvme"
disk0_name="disk0.img"
grub_run_partition="1"
grub_run_dir="/boot/grub"
uuid="c7e9304c-b67c-11ef-abe6-ace2d30101d0"
network0_mac="58:9c:fc:0d:39:fe"
#passthru0="0/20/0=2:0" # that was in the config @14.3
passthru0="0/20/0" # tried changing it to this. no luck


=== Guest ===

[core-ssh ~]$ dmesg | grep -i usb
[    0.629838] ACPI: bus type USB registered
[    0.631733] usbcore: registered new interface driver usbfs
[    0.632723] usbcore: registered new interface driver hub
[    0.633722] usbcore: registered new device driver usb
[    0.890288] xhci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 1
[    0.897560] xhci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 2
[    0.898847] xhci_hcd 0000:00:06.0: Host supports USB 3.0 SuperSpeed
[    0.899975] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    0.901400] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.902661] usb usb1: Product: xHCI Host Controller
[    0.903541] usb usb1: Manufacturer: Linux 6.12.51-haos xhci-hcd
[    0.904583] usb usb1: SerialNumber: 0000:00:06.0
[    0.905573] hub 1-0:1.0: USB hub found
[    0.907346] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.12
[    0.908753] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.910003] usb usb2: Product: xHCI Host Controller
[    0.910859] usb usb2: Manufacturer: Linux 6.12.51-haos xhci-hcd
[    0.911893] usb usb2: SerialNumber: 0000:00:06.0
[    0.912933] hub 2-0:1.0: USB hub found
[    0.914673] usbcore: registered new interface driver usblp
[    0.915660] usbcore: registered new interface driver usb-storage
[    0.916739] usbcore: registered new interface driver usbserial_generic
[    0.917938] usbserial: USB Serial support registered for generic
[    0.936652] usbcore: registered new interface driver usbhid
[    0.937820] usbhid: USB HID core driver


$ lsusb
[hangs]

$ ls /dev/serial
ls: /dev/serial: No such file or directory



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b7ugn3xwfddzq5nf2kwbkfzqigoij4khys4wnvefckdapjhjcm>