From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9wO0-0002WZ-W1 for qemu-devel@nongnu.org; Tue, 20 Mar 2012 06:33:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9wNu-0005gy-Dk for qemu-devel@nongnu.org; Tue, 20 Mar 2012 06:33:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9wNu-0005gh-63 for qemu-devel@nongnu.org; Tue, 20 Mar 2012 06:33:46 -0400 Date: Tue, 20 Mar 2012 10:33:40 +0000 From: "Daniel P. Berrange" Message-ID: <20120320103340.GA2380@redhat.com> References: <1332169763-30665-1-git-send-email-aliguori@us.ibm.com> <1332169763-30665-9-git-send-email-aliguori@us.ibm.com> <4F683677.1050302@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4F683677.1050302@redhat.com> Subject: Re: [Qemu-devel] [PATCH 8/9] vl: add -query-capabilities Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Anthony Liguori , Eric Blake , qemu-devel@nongnu.org, Eduardo Habkost On Tue, Mar 20, 2012 at 08:49:11AM +0100, Gerd Hoffmann wrote: > On 03/19/12 16:09, Anthony Liguori wrote: > > This dumps the results of query-version, query-commands, and > > query-config-capabilities into a single JSON object on stdout. > > I think libvirt needs a query-devices too. Currently we get capability like info in the following areas: * List of CPUs: $QEMU -cpu ? * List of machine types: $QEMU -M ? * List of devices & properties: $QEMU -device ? \ -device pci-assign,? \ -device virtio-blk-pci,? \ -device virtio-net-pci,? \ -device scsi-disk,? As well as 80 odd other pieces of information[1] via -help, but lets not get side tracked by those right now. What is proposed so far is a good start, we can iteratively build on. If we can get the above commands into JSON format too, that'd be nice so that we can have one parser to rule them all. Regards, Daniel [1] See the comments in the enum here for details of what we get from -help http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/qemu/qemu_capabilities.h;hb=HEAD -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|