[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Deprecated option -usbdevice in QEMU



Hi,

In an xl guest config, we have the "usbdevice" option. It is just
passthrough to QEMU "-usbdevice" without parsing. The QEMU option is now
deprecated. v2.11 (to be released with Xen 4.11) is the last version of
QEMU to have the option.

Unfortunatly, our documentation relie on QEMU's documentation, so there
would be a lot to parse if we want to keep the option.

I propose that we also deprecated the "usbdevice" option and find a
suitable alternative (or we have to parse usbdevice in libxl).

"usbdev" seems to be a good fit for that, and should already handle
"usbdevice='host:bus.addr', but would be written:
"usbdev=['type=hostdev,hostbus=bus,hostaddr=addr']"

The other use of "usbdevice" documented on the man are:
- tablet
- host:vendor_id:product_id

Other usage of "usbdevice" documented in the QEMU documentation:
- mouse
- disk:[format=format]:file
- serial:[vendorid=vendor_id][,productid=product_id]:dev
- braille
- net:options


From QEMU perspective, those options can be replaced the following
cmdline options or QMP command equivalent (I haven't check everything):
* -device usb-tablet
* -device usb-host,vendorid=vendor,productid=product
* -device usb-mouse
* -drive if=none,id=drive_id,file=file  -device usb-storage,drive=drive_id
* -chardev x,id=id -device usb-serial,chardev=id
* -device usb-braille
* -netdev x,id=id -device usb-net,netdev=id


How the original "usbdevice" could be translated into a USBDEV_SPEC for
"usbdev" ? Maybe for e.g.:
'type=tablet'
'type=storage,file=file,format=format'

I don't know is anybody would be using "usbdevice='net:...'" or
"usbdevice='serial:...'".

What do you think?

Thanks,

-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.