From: Eric Blake <eblake@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: gleb@kernel.org, pbonzini@redhat.com, qemu-devel@nongnu.org,
armbru@redhat.com, mprivozn@redhat.com
Subject: Re: [Qemu-devel] [patch 1/3] mc146818rtc: add rtc_reset_reinjection QMP command
Date: Mon, 02 Jun 2014 14:31:34 -0600 [thread overview]
Message-ID: <538CDF26.6040904@redhat.com> (raw)
In-Reply-To: <20140602202038.GA12036@amt.cnet>
[-- Attachment #1: Type: text/plain, Size: 1748 bytes --]
On 06/02/2014 02:20 PM, Marcelo Tosatti wrote:
> On Mon, Jun 02, 2014 at 01:31:29PM -0600, Eric Blake wrote:
>> On 06/02/2014 11:51 AM, mtosatti@redhat.com wrote:
>>> It is necessary to reset RTC interrupt reinjection backlog if
>>> guest time is synchronized via a different mechanism, such as
>>> QGA's guest-set-time command.
>>>
>>> +
>>> +##
>>> +# @: rtc-reset-reinjection
>>
>> s/: // to resemble most other commands
>
> Several commands have ":". What is the correct syntax and why?
Alas, we don't have any automated program that strips these stylized
comments and turns them into formal documentation. But the goal is that
some day we might, at which point, being consistent in our style is the
most likely to be successful. The prevalent style appears to be:
##
# @command:
#
# Short summary
#
# @foo: describe mandatory option foo
#
# @bar: #optional describe optional option bar, and its default value
# if omitted
#
# Returns: what to expect from the command
#
# Since: version it was introduced
##
{ 'command' ... }
Although I will admit that '@command' vs. '@command:' didn't have a
clear winner. Maybe someone with OCD wants to do a pure cleanup patch
to get the file into a consistent state? Until then, I'm pointing out
where things are definitely different (your '@: command' was an outlier)
>>> EQMP
>>> +
>>> +#if defined (TARGET_I386)
>>> + {
>>> + .name = "rtc_reset_reinjection",
>>
>> s/rtc_reset_reinjection/rtc-reset-reinjection/
>
> This is a function name.
No, it is a QMP command name. See "send-key" for an example.
--
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: 604 bytes --]
next prev parent reply other threads:[~2014-06-02 20:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20140530201145.194061806@amt.cnet>
2014-06-02 17:51 ` [Qemu-devel] [patch 0/3] add QMP command to reset rtc interrupt backlog (v3) mtosatti
2014-06-02 17:51 ` [Qemu-devel] [patch 1/3] mc146818rtc: add rtc_reset_reinjection QMP command mtosatti
2014-06-02 19:31 ` Eric Blake
2014-06-02 20:20 ` Marcelo Tosatti
2014-06-02 20:31 ` Eric Blake [this message]
2014-06-02 17:51 ` [Qemu-devel] [patch 2/3] add object_property_add_alias mtosatti
2014-06-02 17:51 ` [Qemu-devel] [patch 3/3] mc146818rtc: add "rtc" link to "/machine" mtosatti
2014-06-02 19:05 ` [Qemu-devel] [patch 0/3] add QMP command to reset rtc interrupt backlog (v3) Eric Blake
2014-06-02 19:20 ` Marcelo Tosatti
2014-06-02 19:41 ` Eric Blake
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=538CDF26.6040904@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=gleb@kernel.org \
--cc=mprivozn@redhat.com \
--cc=mtosatti@redhat.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).