I'm launching a VM using qemu-system-x86_64
. I know two ways to pass through a USB device.
Say for example, I had a mouse that showed up in lsusb like
Bus 003 Device 011: ID 6ade:9582 Amazing Mouse Maker
I could pass it through using
-device usb-host,vendorid=0x6ade,productid=0x9582
or
-device usb-host,hostbus=3,hostaddr=11
Neither of these I really like. If I grab it by Vendor/Product ID then I will never be able to reclaim that mouse until the VM is turned off.
If I grab it by BUS and Device number, then I will have to tell Qemu to reacquire it if I unplug it.
Is it possible for me to send it by Port (the actual physical slot)? Say it's plugged in to Bus 3 Port 2. Can I pass it by that?