[Call For Test] Single USB device passthrough for Bhyve
- Reply: Shawn Webb : "Re: [Call For Test] Single USB device passthrough for Bhyve"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Aug 2025 16:36:12 UTC
Hello all: I am currently working on implementing single USB device passthrough for bhyve. The patch is over here: https://reviews.freebsd.org/D52166 At this stage, all four types of transfers are supported: control, bulk, interrupt, and isochronous. I have verified functionality with a few devices, but broader testing is definitely needed to ensure stability and compatibility. The isochornous xfer remain untested since it is a little bit hard for me to setup uvc test in guest. In addition, device hotplug is supported. This means that once the guest is running, you can physically remove a device and reattach it without requiring a restart. To build this feature, please apply all parent patches listed on Phabricator and rebuild kernel, libusb, and usbconfig. To test passthrough, append the following argument in your bhyve config, -s 30,xhci,passthru.vid.pid Here, vid and pid are the hexadecimal value of the vendor id and product id of the target device. You can obtain these values with: usbconfig dump_all_desc. I would greatly appreciate it if more people could test this feature and provide feedback. Thanks! -- Best Regards. ShengYi Hung.