Received: from eggs.gnu.org ([2001:4830:134:3::10]:60606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6aSc-0006ld-4y for qemu-devel@nongnu.org; Mon, 14 Jul 2014 03:14:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6aSW-0007UN-Oq for qemu-devel@nongnu.org; Mon, 14 Jul 2014 03:14:06 -0400 Received: from oxygen.pond.sub.org ([2a01:4f8:201:233:1::3]:39453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6aSW-0007SQ-JA for qemu-devel@nongnu.org; Mon, 14 Jul 2014 03:14:00 -0400 From: Markus Armbruster References: <53C05C97.9070509@googlemail.com> Date: Mon, 14 Jul 2014 09:13:55 +0200 In-Reply-To: <53C05C97.9070509@googlemail.com> (Pascal Heinrich's message of "Fri, 11 Jul 2014 23:52:23 +0200") Message-ID: <87mwccjtu4.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] qemu qmp [info usb] and [info hostusb] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pascal Heinrich Cc: qemu-devel@nongnu.org, Andreas =?utf-8?Q?F=C3=A4rber?= Pascal Heinrich writes: > Hi, > > I am trying to implement a qtprogram to bind and unbind usb devices from > an qemu instance. > > Via device_add I am able to bind a device to the vm but there is no > command in qmp to list binded devices or I do not find them. > > I am searching for something like >"query-usb"< > > Is there something implemented like that? In the human monitor, there's "info qtree", but programs really should use QMP. It provides qom-list and qom-get, but that's rather low level. Andreas, any further advice?