azarus' page

New QEMU USB syntax

Date: 2017-09-03

I've upgraded from QEMU 2.9.0 to 2.10.0, and noticed that my USB passthrough wasn't working anymore, so I had to change the parameters. The syntax is quite confusing, so I'll document it here.

Take, for example, this nice, and simple, legacy syntax:

-usbdevice host:05ac:0205

to change that into the new [-device usb-...] syntax, it turns into:

-device usb-host,vendorid='0x05ac',productid='0x0205'

This really threw me off at first, because of the `0x` you have to prepend before the vendorid and productid parameters.

Hope this help for people that upgrade to 2.10.