qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 8/9] vl: add -query-capabilities


From: Daniel P. Berrange
Subject: Re: [Qemu-devel] [PATCH 8/9] vl: add -query-capabilities
Date: Tue, 20 Mar 2012 10:33:40 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

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 :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]