qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Capitulino <lcapitulino@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: aliguori@us.ibm.com, Amos Kong <akong@redhat.com>,
	qemu-devel@nongnu.org, jyang@redhat.com
Subject: Re: [Qemu-devel] [PATCH v5] monitor: introduce query-command-line-options
Date: Thu, 25 Apr 2013 11:07:22 -0400	[thread overview]
Message-ID: <20130425110722.605c63fe@redhat.com> (raw)
In-Reply-To: <51793637.2000208@redhat.com>

On Thu, 25 Apr 2013 07:57:11 -0600
Eric Blake <eblake@redhat.com> wrote:

> On 04/25/2013 03:50 AM, Amos Kong wrote:
> > Libvirt has no way to probe if an option or property is supported,
> > This patch introduces a new qmp command to query command line
> > option information. hmp command isn't added because it's not needed.
> > 
> > Signed-off-by: Amos Kong <akong@redhat.com>
> > CC: Luiz Capitulino <lcapitulino@redhat.com>
> > CC: Osier Yang <jyang@redhat.com>
> > CC: Anthony Liguori <aliguori@us.ibm.com>
> > ---
> > V3: fix json schema and comments (Eric)
> > V4: fix descriptions, rename command, check enum type, cleanup
> >     (Luiz, Eric)
> > V5: fix typo, cleanup (Osier)
> > ---
> >  qapi-schema.json   | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> >  qmp-commands.hx    | 47 ++++++++++++++++++++++++++++++++++++++
> >  util/qemu-config.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >  3 files changed, 180 insertions(+)
> 
> Only minor typo fixups below; I'm assuming Luiz can fix them up while
> putting on the QMP pull request, without needing to see a v6.

Yes.

Applied to the qmp branch, thanks.

> 
> Reviewed-by: Eric Blake <eblake@redhat.com>
> 
> > +##
> > +# @CommandLineParameterType:
> > +#
> > +# Possible types for an option parameter.
> > +#
> > +# @string: accepts a character string
> > +#
> > +# @boolean: accepts "on" or "off"
> > +#
> > +# @number: accepts a number
> > +#
> > +# @size: accepts a number followed by an optional postfix (K)ilo,
> 
> s/postfix/suffix/
> 
> > +
> > +##
> > +# @CommandLineOptionInfo:
> > +#
> > +# Details about a command line option, including its list of parameters details
> 
> s/parameters/parameter/
> 
> > +##
> > +# @query-command-line-options:
> > +#
> > +# Query command line option schema.
> > +#
> > +# @option: #optional option name
> > +#
> > +# Returns: list of @CommandLineOptionInfo for all options (or for the given
> > +#          @option).  Returns an error if the given @option doesn't exist.
> > +#
> > +# Since 1.5
> > +##
> > +{'command': 'query-command-line-options', 'data': { '*option': 'str' },
> > + 'returns': ['CommandLineOptionInfo'] }
> 
> Libvirt probably won't use the optional 'option' argument.  I don't care
> whether you leave it in or Luiz takes filtering out for the 1.5 release.
> 
> > diff --git a/qmp-commands.hx b/qmp-commands.hx
> > index 4d65422..31bb360 100644
> > --- a/qmp-commands.hx
> > +++ b/qmp-commands.hx
> > @@ -2416,6 +2416,53 @@ EQMP
> >      },
> >  
> >  SQMP
> > +query-command-line-options
> > +--------------------------
> > +
> > +Show command line option schema.
> > +
> > +Return a json-array of command line option schema for all options (or for
> > +the given option), returning an error if the given option doesn't exist.
> > +
> > +Each array entry contains the following:
> > +
> > +- "option": option name (json-string)
> > +- "parameters": a json-array describes all parameters of the option:
> > +    - "name": parameter name (json-string)
> > +    - "type": parameter type (one of 'string', boolean', 'number',
> 
> s/boolean'/'boolean'/
> 

      reply	other threads:[~2013-04-25 15:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-25  9:50 [Qemu-devel] [PATCH v5] monitor: introduce query-command-line-options Amos Kong
2013-04-25 13:20 ` Luiz Capitulino
2013-04-25 14:11   ` Eric Blake
2013-04-25 15:48   ` Osier Yang
2013-04-25 16:32     ` Eric Blake
2013-04-25 13:57 ` Eric Blake
2013-04-25 15:07   ` Luiz Capitulino [this message]

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=20130425110722.605c63fe@redhat.com \
    --to=lcapitulino@redhat.com \
    --cc=akong@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=eblake@redhat.com \
    --cc=jyang@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).