[Bug 262936] bhyve: win10 host fails to restart

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Apr 2022 13:56:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262936

--- Comment #5 from bergerkos@yahoo.co.uk ---
OK, I solved this by removing the USB 3.0 PCIe card PASSTHRU from my bhyve
config, the one mentioned in the error message:
bhyve: Failed to map MSI-X table BAR on 12/0/0: Device busy
bhyve: failed to initialize BARs for PCI 12/0/0
device emulation initialization error: Device busy

I tried instead adding PASSTHRU for motherboard-based VIA VL805/806 xHCI USB
3.0 Controller instead. And it works!!! I don't even need the `bhyvectl --vm
--restart` hack any more to restart the VM that was shut down, as I had to.

The irony is, this same VIA controller that now works fine caused me trouble
with bhyve some 2 years ago (PASSTHRU would not attach; when it does, the
machine spontaneously reboots). 

Still not clear what's causing the original problem reported here... For
reference, the problematic device is
xhci0@pci0:12:0:0:      class=0x0c0330 rev=0x03 hdr=0x00 vendor=0x1912
device=0x0014 subvendor=0x1912 subdevice=0x0014
    vendor     = 'Renesas Technology Corp.'
    device     = 'uPD720201 USB 3.0 Host Controller'
It USED to work fine with PASSTHRU, that's why I originally bought it.

THe one that works fine is:
ppt1@pci0:11:0:0:       class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x1106
device=0x3483 subvendor=0x1106 subdevice=0x3483
    vendor     = 'VIA Technologies, Inc.'
    device     = 'VL805/806 xHCI USB 3.0 Controller'

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