Hi,
> > USB devices in attached state are visible to the guest.
>
> If I read the code correctly:
>
> * ->attached is true between usb_device_attach() and usb_device_detach()
>
> * Attach and detach is automatic on realize and unrealize, but a device
> can choose to suppress attach on
Gerd Hoffmann writes:
> Hi,
>
>> > USB devices in attached state are visible to the guest.
>>
>> If I read the code correctly:
>>
>> * ->attached is true between usb_device_attach() and usb_device_detach()
>>
>> * Attach and detach is automatic on realize and unrealize,
Suggest to say
usb: Add QOM property "attached"
The quotes make more obvious that "attached" is a property name, not an
adjective tacked to property.
Gerd Hoffmann writes:
> USB devices in attached state are visible to the guest.
If I read the code correctly:
*
USB devices in attached state are visible to the guest. This patch adds
a QOM property for this. Write access is opt-in per device. Some
devices manage attached state automatically (usb-host, usb-serial), so
we can't enable write access universally but have to do it on a case by
case base.