On Mon, Aug 21, 2017 at 01:44:19PM +0200, Gerd Hoffmann wrote:
> Hi,
>
> -ENOCONTEXT
>
> What is the use case?
I want to let libvirt know what are the available
slots/ports/addresses for devices in a machine, before it uses
device_add or -device. This is useful when the machine creates
some d
Hi,
-ENOCONTEXT
What is the use case?
> +QTAILQ_FOREACH(port, l, next) {
> +DeviceSlotInfo *slot = make_slot(BUS(bus));
> +/*
> + * TODO: should the "bus" option be included, or is
> + * "port" enough to identify the USB bus + port?
> + */
Yes, bus
Example output for QEMU command-line:
$ qemu-system-x86_64 -machine q35,usb=on -S \
-device usb-hub,port=2 -device usb-tablet,port=2.4
Output:
{"available":true,"count":12,
"device-types":["usb-device"],"hotpluggable":true,
"opts":[
{"option":"port","values":["1","3","4","5",