Re: [Qemu-devel] qapi: [PATCH v2] Implement query-usbhost QMP command

2018-04-17 Thread Eric Blake
On 04/14/2018 04:29 AM, Alexander Kappner wrote: > Implement a QMP command similar to the HMP's "info usbhost" command. > This allows a QMP client to query which USB devices may be available > for redirection. Because the availability of the command needs to > depend on the target's (not the build

Re: [Qemu-devel] qapi: [PATCH v2] Implement query-usbhost QMP command

2018-04-17 Thread Gerd Hoffmann
On Mon, Apr 16, 2018 at 03:52:03PM -0700, Alexander Kappner wrote: > Hi Gerd, > > thanks for reviewing. I'll follow up with a v3 of the patch addressing your > proposed changes. > > >> This allows a QMP client to query which USB devices may be available > >> for redirection. > > > At least libv

Re: [Qemu-devel] qapi: [PATCH v2] Implement query-usbhost QMP command

2018-04-16 Thread Alexander Kappner
Hi Gerd, thanks for reviewing. I'll follow up with a v3 of the patch addressing your proposed changes. >> This allows a QMP client to query which USB devices may be available >> for redirection. > At least libvirt sandboxes qemu, for security reasons, and you wouldn't > get any useful results b

Re: [Qemu-devel] qapi: [PATCH v2] Implement query-usbhost QMP command

2018-04-16 Thread Gerd Hoffmann
On Sat, Apr 14, 2018 at 02:29:34AM -0700, Alexander Kappner wrote: > Implement a QMP command similar to the HMP's "info usbhost" command. The hmp version of the command should be switched over to call the qmp_query_usbhost() and pretty-print the qapi struct then, to make sure hmp and qmp versions

[Qemu-devel] qapi: [PATCH v2] Implement query-usbhost QMP command

2018-04-14 Thread Alexander Kappner
Implement a QMP command similar to the HMP's "info usbhost" command. This allows a QMP client to query which USB devices may be available for redirection. Because the availability of the command needs to depend on the target's (not the build host's) USB configuration, a stub function in host-stub.c