All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation issue about query_colo_status
       [not found] <20190326174510.13303-1-chen.zhang@intel.com>
@ 2019-04-02  6:20 ` Markus Armbruster
  2019-04-02  7:32   ` Zhang, Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Armbruster @ 2019-04-02  6:20 UTC (permalink / raw)
  To: Zhang Chen
  Cc: Zhang Chen, Dr. David Alan Gilbert, Juan Quintela, zhanghailiang,
	Eric Blake, qemu-dev

Zhang Chen <chen.zhang@intel.com > writes:

> From: Zhang Chen <chen.zhang@intel.com>
>
> The documentation with the wrong initial version number of last_mode field,
> This patch just fix this issue.
>
> Signed-off-by: Zhang Chen <chen.zhang@intel.com>
> ---
>  qapi/migration.json | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/qapi/migration.json b/qapi/migration.json
> index cfde29acf8..798c6ac2df 100644
> --- a/qapi/migration.json
> +++ b/qapi/migration.json
> @@ -1382,7 +1382,7 @@
>  #
>  # @last_mode: COLO last running mode. If COLO is running, this field
>  #             will return same like mode field, after failover we can
> -#             use this field to get last colo mode. (since 4.1)
> +#             use this field to get last colo mode. (since 4.0)
>  #
>  # @reason: describes the reason for the COLO exit.
>  #

What's the excuse for spelling last_mode with '_' instead of '-'?

Any objection to changing it to last-mode?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation issue about query_colo_status
  2019-04-02  6:20 ` [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation issue about query_colo_status Markus Armbruster
@ 2019-04-02  7:32   ` Zhang, Chen
  2019-04-02  8:37     ` Markus Armbruster
  0 siblings, 1 reply; 4+ messages in thread
From: Zhang, Chen @ 2019-04-02  7:32 UTC (permalink / raw)
  To: Markus Armbruster
  Cc: Zhang Chen, Dr. David Alan Gilbert, Juan Quintela, zhanghailiang,
	Eric Blake, qemu-dev


> -----Original Message-----
> From: Markus Armbruster [mailto:armbru@redhat.com]
> Sent: Tuesday, April 2, 2019 2:20 PM
> To: Zhang, Chen <chen.zhang@intel.com>
> Cc: Zhang Chen <zhangckid@gmail.com>; Dr. David Alan Gilbert
> <dgilbert@redhat.com>; Juan Quintela <quintela@redhat.com>; zhanghailiang
> <zhang.zhanghailiang@huawei.com>; Eric Blake <eblake@redhat.com>; qemu-
> dev <qemu-devel@nongnu.org>; Zhang, Chen <chen.zhang@intel.com>
> Subject: Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation
> issue about query_colo_status
> 
> Zhang Chen <chen.zhang@intel.com > writes:
> 
> > From: Zhang Chen <chen.zhang@intel.com>
> >
> > The documentation with the wrong initial version number of last_mode
> > field, This patch just fix this issue.
> >
> > Signed-off-by: Zhang Chen <chen.zhang@intel.com>
> > ---
> >  qapi/migration.json | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/qapi/migration.json b/qapi/migration.json index
> > cfde29acf8..798c6ac2df 100644
> > --- a/qapi/migration.json
> > +++ b/qapi/migration.json
> > @@ -1382,7 +1382,7 @@
> >  #
> >  # @last_mode: COLO last running mode. If COLO is running, this field
> >  #             will return same like mode field, after failover we can
> > -#             use this field to get last colo mode. (since 4.1)
> > +#             use this field to get last colo mode. (since 4.0)
> >  #
> >  # @reason: describes the reason for the COLO exit.
> >  #
> 
> What's the excuse for spelling last_mode with '_' instead of '-'?
> 
> Any objection to changing it to last-mode?

No, I just found in migration.json have both '_' and  '-', for example "migrate_cancel" and "migrate-continue".
If you think we should use the '-' format in this migration.qapi file, I will send a patch to change all command format to the '-'.

Thanks
Zhang Chen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation issue about query_colo_status
  2019-04-02  7:32   ` Zhang, Chen
@ 2019-04-02  8:37     ` Markus Armbruster
  2019-04-02  9:01       ` Zhang, Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Armbruster @ 2019-04-02  8:37 UTC (permalink / raw)
  To: Zhang, Chen
  Cc: Markus Armbruster, zhanghailiang, Juan Quintela, qemu-dev,
	Dr. David Alan Gilbert, Zhang Chen

"Zhang, Chen" <chen.zhang@intel.com> writes:

>> -----Original Message-----
>> From: Markus Armbruster [mailto:armbru@redhat.com]
>> Sent: Tuesday, April 2, 2019 2:20 PM
>> To: Zhang, Chen <chen.zhang@intel.com>
>> Cc: Zhang Chen <zhangckid@gmail.com>; Dr. David Alan Gilbert
>> <dgilbert@redhat.com>; Juan Quintela <quintela@redhat.com>; zhanghailiang
>> <zhang.zhanghailiang@huawei.com>; Eric Blake <eblake@redhat.com>; qemu-
>> dev <qemu-devel@nongnu.org>; Zhang, Chen <chen.zhang@intel.com>
>> Subject: Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation
>> issue about query_colo_status
>> 
>> Zhang Chen <chen.zhang@intel.com > writes:
>> 
>> > From: Zhang Chen <chen.zhang@intel.com>
>> >
>> > The documentation with the wrong initial version number of last_mode
>> > field, This patch just fix this issue.
>> >
>> > Signed-off-by: Zhang Chen <chen.zhang@intel.com>
>> > ---
>> >  qapi/migration.json | 2 +-
>> >  1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/qapi/migration.json b/qapi/migration.json index
>> > cfde29acf8..798c6ac2df 100644
>> > --- a/qapi/migration.json
>> > +++ b/qapi/migration.json
>> > @@ -1382,7 +1382,7 @@
>> >  #
>> >  # @last_mode: COLO last running mode. If COLO is running, this field
>> >  #             will return same like mode field, after failover we can
>> > -#             use this field to get last colo mode. (since 4.1)
>> > +#             use this field to get last colo mode. (since 4.0)
>> >  #
>> >  # @reason: describes the reason for the COLO exit.
>> >  #
>> 
>> What's the excuse for spelling last_mode with '_' instead of '-'?
>> 
>> Any objection to changing it to last-mode?
>
> No, I just found in migration.json have both '_' and  '-', for example "migrate_cancel" and "migrate-continue".
> If you think we should use the '-' format in this migration.qapi file, I will send a patch to change all command format to the '-'.

Quote docs/devel/qapi-code-gen.txt:

    Command names, and member names within a type, should be all lower
    case with words separated by a hyphen.  However, some existing older
    commands and complex types use underscore; when extending such
    expressions, consistency is preferred over blindly avoiding
    underscore.

The consistency argument doesn't apply here.

I'd prefer to have this cleaned up, and I'd prefer to have it done in
-rc2.  If I see a patch from you before I do my pull request, I'll use
it, otherweise I'll patch it myself.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation issue about query_colo_status
  2019-04-02  8:37     ` Markus Armbruster
@ 2019-04-02  9:01       ` Zhang, Chen
  0 siblings, 0 replies; 4+ messages in thread
From: Zhang, Chen @ 2019-04-02  9:01 UTC (permalink / raw)
  To: Markus Armbruster
  Cc: zhanghailiang, Juan Quintela, qemu-dev, Dr. David Alan Gilbert,
	Zhang Chen



> -----Original Message-----
> From: Markus Armbruster [mailto:armbru@redhat.com]
> Sent: Tuesday, April 2, 2019 4:37 PM
> To: Zhang, Chen <chen.zhang@intel.com>
> Cc: Markus Armbruster <armbru@redhat.com>; zhanghailiang
> <zhang.zhanghailiang@huawei.com>; Juan Quintela <quintela@redhat.com>;
> qemu-dev <qemu-devel@nongnu.org>; Dr. David Alan Gilbert
> <dgilbert@redhat.com>; Zhang Chen <zhangckid@gmail.com>
> Subject: Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation
> issue about query_colo_status
> 
> "Zhang, Chen" <chen.zhang@intel.com> writes:
> 
> >> -----Original Message-----
> >> From: Markus Armbruster [mailto:armbru@redhat.com]
> >> Sent: Tuesday, April 2, 2019 2:20 PM
> >> To: Zhang, Chen <chen.zhang@intel.com>
> >> Cc: Zhang Chen <zhangckid@gmail.com>; Dr. David Alan Gilbert
> >> <dgilbert@redhat.com>; Juan Quintela <quintela@redhat.com>;
> >> zhanghailiang <zhang.zhanghailiang@huawei.com>; Eric Blake
> >> <eblake@redhat.com>; qemu- dev <qemu-devel@nongnu.org>; Zhang, Chen
> >> <chen.zhang@intel.com>
> >> Subject: Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix
> >> documentation issue about query_colo_status
> >>
> >> Zhang Chen <chen.zhang@intel.com > writes:
> >>
> >> > From: Zhang Chen <chen.zhang@intel.com>
> >> >
> >> > The documentation with the wrong initial version number of
> >> > last_mode field, This patch just fix this issue.
> >> >
> >> > Signed-off-by: Zhang Chen <chen.zhang@intel.com>
> >> > ---
> >> >  qapi/migration.json | 2 +-
> >> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >> >
> >> > diff --git a/qapi/migration.json b/qapi/migration.json index
> >> > cfde29acf8..798c6ac2df 100644
> >> > --- a/qapi/migration.json
> >> > +++ b/qapi/migration.json
> >> > @@ -1382,7 +1382,7 @@
> >> >  #
> >> >  # @last_mode: COLO last running mode. If COLO is running, this field
> >> >  #             will return same like mode field, after failover we can
> >> > -#             use this field to get last colo mode. (since 4.1)
> >> > +#             use this field to get last colo mode. (since 4.0)
> >> >  #
> >> >  # @reason: describes the reason for the COLO exit.
> >> >  #
> >>
> >> What's the excuse for spelling last_mode with '_' instead of '-'?
> >>
> >> Any objection to changing it to last-mode?
> >
> > No, I just found in migration.json have both '_' and  '-', for example
> "migrate_cancel" and "migrate-continue".
> > If you think we should use the '-' format in this migration.qapi file, I will send
> a patch to change all command format to the '-'.
> 
> Quote docs/devel/qapi-code-gen.txt:
> 
>     Command names, and member names within a type, should be all lower
>     case with words separated by a hyphen.  However, some existing older
>     commands and complex types use underscore; when extending such
>     expressions, consistency is preferred over blindly avoiding
>     underscore.
> 
> The consistency argument doesn't apply here.
> 
> I'd prefer to have this cleaned up, and I'd prefer to have it done in -rc2.  If I see
> a patch from you before I do my pull request, I'll use it, otherweise I'll patch it
> myself.

Hi Markus,

I have sent a patch for this issue, please pick up it.
[PATCH] qapi/migration.json: Clean up for COLOStatus

Thanks
Zhang Chen

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-02  9:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190326174510.13303-1-chen.zhang@intel.com>
2019-04-02  6:20 ` [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation issue about query_colo_status Markus Armbruster
2019-04-02  7:32   ` Zhang, Chen
2019-04-02  8:37     ` Markus Armbruster
2019-04-02  9:01       ` Zhang, Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.