Conversation
sax
force-pushed
the
sax/usb-passthrough
branch
4 times, most recently
from
September 24, 2026 19:42
702c3e9 to
429a1c5
Compare
sax
force-pushed
the
sax/usb-passthrough
branch
from
September 24, 2026 19:48
429a1c5 to
1f034e5
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guest kernel config (
kernel/config-arm64)USBPassthroughgives the VM an emulated XHCI controller, which Linux can't see without these options:CONFIG_USB_SUPPORT,CONFIG_USB- USB coreCONFIG_USB_PCI- Finds USB host controllers on the PCI busCONFIG_USB_XHCI_HCD- XHCI (USB 3) host controller driverCONFIG_USB_XHCI_PCI- Binds the xHCI driver to PCI xHCI controllersCONFIG_USB_ACM- CDC-ACM class driver (/dev/ttyACM*)USBPassthroughgives the VM an emulated xHCI controller, which Virtualization.framework exposes as a PCI device. The guest needs the USB core (CONFIG_USB_SUPPORT,CONFIG_USB), PCI discovery of USB controllers (CONFIG_USB_PCI), and the xHCI driver with its PCI binding (CONFIG_USB_XHCI_HCD,CONFIG_USB_XHCI_PCI) to find it and show passed-through devices under/dev/bus/usb.CONFIG_USB_ACMisn't needed for passthrough. It adds serial access to CDC-ACM devices such as official Arduino boards. Other device classes stay disabled in these changes to keep the kernel small(er)Entitlements
USB passthrough requires the
com.apple.developer.accessory-access.usbentitlement. There is no one place in this repo to document entitlements, but this in included in inline doc comments.