Re: [Qemu-devel] [PATCH 2/4] usb: add attached property

2016-02-02 Thread Gerd Hoffmann
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

Re: [Qemu-devel] [PATCH 2/4] usb: add attached property

2016-02-02 Thread Markus Armbruster
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,

Re: [Qemu-devel] [PATCH 2/4] usb: add attached property

2016-02-02 Thread Markus Armbruster
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: *

[Qemu-devel] [PATCH 2/4] usb: add attached property

2016-01-26 Thread Gerd Hoffmann
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.