qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: aliguori@us.ibm.com, mdroth@linux.vnet.ibm.com,
	qemu-devel@nongnu.org, jyang@redhat.com,
	Paolo Bonzini <pbonzini@redhat.com>, Amos Kong <akong@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema
Date: Tue, 23 Apr 2013 09:32:31 -0600	[thread overview]
Message-ID: <5176A98F.9050809@redhat.com> (raw)
In-Reply-To: <20130423092040.7179f3ce@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2302 bytes --]

On 04/23/2013 07:20 AM, Luiz Capitulino wrote:
> On Mon, 22 Apr 2013 09:00:05 -0600
> Eric Blake <eblake@redhat.com> wrote:
> 
>> At any rate, we really DO want introspection, and having it in 1.5 is a
>> worthwhile goal.  Even if the introspection turns up empty on legacy
>> options, having it for the sake of new options is worth the effort.
> 
> Agreed. But as you said in another email, we need a JSON representation
> for this command. Dumping all options as strings is just like using -help.
> 
> Something else that has occurred to me is that, do we want this to be
> a QMP command or do we want this to be a command-line option? If we do this
> as a QMP command then libvirt would have to actually start QEMU just to
> query supported options.

A command-line option might (or might not) be useful to humans, but a
QMP command is what libvirt wants.  Libvirt already starts a QMP session
for lots of other queries (not the least of which is the
'query-commands' query which would let us know whether to even expect
the new QMP command for command-line introspection to work).  Adding one
more QMP query to the mix called by libvirt is easy (no additional
processes, and the response already goes through the JSON parser that
handles all QMP responses); adding a new command line option is more
expensive (we would have to start qemu once to use the command line
option, then again for the QMP queries; also, it's more coding effort to
wire up libvirt to pass the stdout from the command line call into the
JSON parser that was normally expecting data from a Unix socket).

> 
> Another interesting point is about full schema introspection. This patch
> only supports command-line options. It would be desirable to be able to
> introspect all QAPI types and QMP commands, although I'm aware that this
> might be a lot of work to do for 1.5.

Based on the call today, getting introspection for command line
additions in time for 1.5, and saving full QMP introspection until 1.6,
would be reasonable; libvirt's immediate goal is to determine when it is
safe to use new command line options while doing its one-shot QMP
probing of a qemu binary.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]

  reply	other threads:[~2013-04-23 15:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-19  9:52 [Qemu-devel] [PATCH] monitor: introduce query-config-schema Amos Kong
2013-04-19 12:02 ` Osier Yang
2013-04-19 12:22   ` Eric Blake
2013-04-19 13:44   ` Osier Yang
2013-04-19 12:39 ` Eric Blake
2013-04-19 13:50   ` Osier Yang
2013-04-19 15:21 ` Paolo Bonzini
2013-04-22 11:48   ` Amos Kong
2013-04-22 12:07     ` Paolo Bonzini
2013-04-22 15:00       ` Eric Blake
2013-04-22 15:16         ` Paolo Bonzini
2013-04-23  2:40           ` Amos Kong
2013-04-23 13:20         ` Luiz Capitulino
2013-04-23 15:32           ` Eric Blake [this message]
2013-04-23 16:55             ` Luiz Capitulino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5176A98F.9050809@redhat.com \
    --to=eblake@redhat.com \
    --cc=akong@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=jyang@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).