Re: [Qemu-devel] [PULL 4/5] usb-bot: hotplug support

2016-06-23 Thread Gerd Hoffmann
On Mi, 2016-06-22 at 16:20 +0200, Paolo Bonzini wrote: > > On 22/06/2016 13:48, Gerd Hoffmann wrote: > > Hot-plugging a usb-bot device with one or more scsi devices can be > > done this way now: > > > > (1) device-add usb-bot,id=foo > > (2) device-add scsi-{hd,cd},bus=foo.0,lun=0 > > (2b) o

Re: [Qemu-devel] [PULL 4/5] usb-bot: hotplug support

2016-06-22 Thread Paolo Bonzini
On 22/06/2016 13:48, Gerd Hoffmann wrote: > Hot-plugging a usb-bot device with one or more scsi devices can be > done this way now: > > (1) device-add usb-bot,id=foo > (2) device-add scsi-{hd,cd},bus=foo.0,lun=0 > (2b) optionally add more devices (luns 0 ... 15). > (3) qom-set foo.attach

[Qemu-devel] [PULL 4/5] usb-bot: hotplug support

2016-06-22 Thread Gerd Hoffmann
This patch marks usb-bot as hot-pluggable device, makes attached property settable and turns off auto-attach in case the device was hotplugged. Hot-plugging a usb-bot device with one or more scsi devices can be done this way now: (1) device-add usb-bot,id=foo (2) device-add scsi-{hd,cd},bus=f