for what it is worth this is how you “lsusb” in macOS:
$ ioreg -p IOUSB
+-o Root <class IORegistryEntry, id 0x100000100, retain 36>
+-o AppleT8112USBXHCI@01000000 <class AppleT8112USBXHCI, id 0x100000371, reg$
| +-o Magic Keyboard@01100000 <class IOUSBHostDevice, id 0x100000d5a, regist$
+-o AppleT8112USBXHCI@03000000 <class AppleT8112USBXHCI, id 0x1000003bb, reg$
+-o AppleT8112USBXHCI@00000000 <class AppleT8112USBXHCI, id 0x1000003ca, reg$
| +-o 4-Port USB 2.0 Hub@00100000 <class IOUSBHostDevice, id 0x100000a0e, re$
| | +-o USB2.0 Hub @00140000 <class IOUSBHostDevice, id 0x100000$
| | +-o Rocksmith USB Guitar Adapter@00110000 <class IOUSBHostDevice, id 0x1$
| +-o 4-Port USB 3.0 Hub@00200000 <class IOUSBHostDevice, id 0x100000a10, re$
| +-o RTL9210B-CG@00220000 <class IOUSBHostDevice, id 0x100000a43, registe$
| +-o USB3.0 Hub @00240000 <class IOUSBHostDevice, id 0x100000$
| +-o USB3.0 Card Reader@00243000 <class IOUSBHostDevice, id 0x100000a71$
+-o AppleT8112USBXHCI@02000000 <class AppleT8112USBXHCI, id 0x10000036e, reg$
| +-o Scarlett 4i4 USB@02100000 <class IOUSBHostDevice, id 0x100000a56, regi$
+-o AppleEmbeddedUSBXHCIASMedia3142@08000000 <class AppleEmbeddedUSBXHCIASMe$
+-o USB Receiver@08300000 <class IOUSBHostDevice, id 0x100000a2f, register$
+-o YubiKey FIDO+CCID@08400000 <class IOUSBHostDevice, id 0x100000a37, reg$
ioreg is a wrapper utility for doing queries from https://developer.apple.com/documentation/iokit
just learned this and now i’ll probably remember it too after writing this ;-)
Just learned how to update OVMF_VARS.fd
offline before running QEMU:
virt-fw-vars \
--input "$OUTPUT/OVMF_VARS.fd" \
--output "$OUTPUT/OVMF_VARS.fd" \
--append-boot-filepath /EFI/debian/grubx64.efi
E.g., in Debian the package containing virt-fw-vars
is python3-virt-firmware
but it is also available from PIP: https://pypi.org/project/virt-firmware/