LXD VM USB Device: specify by bus and device number?

I have a situation where I want to passthrough a single usb device to a VM from a machine that has multiple devices with the same vendor and product id. I’m curious if there’s a way I could add the appropriate QEMU config directly, or if the usb device type could add support for specifying the bus and device numbers instead of the vendor and product ids?

I think this PR does what you wanted, but it was never finished by the author:

Thanks for pointing me to this PR. I don’t know enough about USB devices to know if “portpath” (“portglob” in the PR) is the best API. My (uninformed) first impression was bus and dev number based on this bit. Either way, I’d be happy to help get this PR over the finish line with some guidance on what the config API should look like.

Please could you start by opening an issue here Issues · lxc/lxd · GitHub describing what you’re trying to do and linking to Draft: Allow USB pass through of specific port path by zyga · Pull Request #9516 · lxc/lxd · GitHub and then we can avoid losing track of it. Thanks