Closed dsseng closed 4 months ago
Another benefit would be better support for devices like B200-mini, which re-appear on bus after firmware loading. As I currently have whole setup, including firmware, inside the VM, I have to boot it twice after the device has been plugged, because after firmware upload it reappears with same ID but on USB3 bus.
This device boots without FPGA firmware and establishes an HS link. Software uploads FPGA image which makes controller setup SuperSpeed link, which moves the device to a different bus. Quite annoying to handle. Haven't yet tried with plain QEMU.
This is already possible.
Start your virtual machine using --display spice
and this will enable clipboard sharing and advanced USB redirection. See the section in the Wiki about USB Redirection
You might also be interested in the SPICE viewer feature to automatically redirect newly connected USB devices, available via:
Options
-> Auto redirect newly connected USB devices
Expected behaviour
I can list USB device IDs to be passed through automatically, even if devices are not present when the VM starts.
Actual behaviour
Only devices present at launch will be available. However, if I replug those, they reconnect to the VM.
Steps to reproduce the behaviour
Add
usb_devices=("2500:0021", "0bda:0169")
or equivalent to the config, have none or only one of the devices plugged in when launching the VM.Quickemu output
Linux Distribution & Kernel
Notes
As seen on https://github.com/quickemu-project/quickemu/blob/master/quickemu#L167 it bails out when no device is found. QEMU however is able to bind devices by their USB IDs, so this can be used.