* [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements
@ 2023-02-13 13:20 Markus Armbruster
2023-02-13 13:20 ` [PATCH 1/2] docs/devel/qapi-code-gen: Belatedly update features documentation Markus Armbruster
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Markus Armbruster @ 2023-02-13 13:20 UTC (permalink / raw)
To: qemu-devel; +Cc: michael.roth, jsnow, eblake, marcandre.lureau
*** BLURB HERE ***
Markus Armbruster (2):
docs/devel/qapi-code-gen: Belatedly update features documentation
docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
docs/devel/qapi-code-gen.rst | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--
2.39.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] docs/devel/qapi-code-gen: Belatedly update features documentation
2023-02-13 13:20 [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements Markus Armbruster
@ 2023-02-13 13:20 ` Markus Armbruster
2023-02-13 15:05 ` Eric Blake
2023-02-13 13:20 ` [PATCH 2/2] docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo Markus Armbruster
2023-02-14 16:49 ` [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements John Snow
2 siblings, 1 reply; 8+ messages in thread
From: Markus Armbruster @ 2023-02-13 13:20 UTC (permalink / raw)
To: qemu-devel; +Cc: michael.roth, jsnow, eblake, marcandre.lureau
Commit 013b4efc9be "qapi: Add feature flags to remaining
definitions" (v5.0.0), commit 84ab0086879 "qapi: Add feature flags to
struct members" (v5.0.0), and commit b6c18755e41 "qapi: Add feature
flags to enum members" (v6.2.0) neglected to update section
"Features". Make up for that.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
docs/devel/qapi-code-gen.rst | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/devel/qapi-code-gen.rst b/docs/devel/qapi-code-gen.rst
index 5edc49aa74..566640edf8 100644
--- a/docs/devel/qapi-code-gen.rst
+++ b/docs/devel/qapi-code-gen.rst
@@ -685,9 +685,10 @@ change in the QMP syntax (usually by allowing values or operations
that previously resulted in an error). QMP clients may still need to
know whether the extension is available.
-For this purpose, a list of features can be specified for a command or
-struct type. Each list member can either be ``{ 'name': STRING, '*if':
-COND }``, or STRING, which is shorthand for ``{ 'name': STRING }``.
+For this purpose, a list of features can be specified for definitions,
+enumeration values, and struct members. Each feature list member can
+either be ``{ 'name': STRING, '*if': COND }``, or STRING, which is
+shorthand for ``{ 'name': STRING }``.
The optional 'if' member specifies a conditional. See `Configuring
the schema`_ below for more on this.
--
2.39.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
2023-02-13 13:20 [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements Markus Armbruster
2023-02-13 13:20 ` [PATCH 1/2] docs/devel/qapi-code-gen: Belatedly update features documentation Markus Armbruster
@ 2023-02-13 13:20 ` Markus Armbruster
2023-02-13 15:07 ` Eric Blake
2023-02-14 16:49 ` [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements John Snow
2 siblings, 1 reply; 8+ messages in thread
From: Markus Armbruster @ 2023-02-13 13:20 UTC (permalink / raw)
To: qemu-devel; +Cc: michael.roth, jsnow, eblake, marcandre.lureau
Documentation of enumeration value conditions lacks a 'may'. Fix
that.
Clarify SchemaInfo documentation for struct and union types.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
docs/devel/qapi-code-gen.rst | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/docs/devel/qapi-code-gen.rst b/docs/devel/qapi-code-gen.rst
index 566640edf8..23e7f2fb1c 100644
--- a/docs/devel/qapi-code-gen.rst
+++ b/docs/devel/qapi-code-gen.rst
@@ -818,8 +818,8 @@ member 'bar' ::
A union's discriminator may not be conditional.
-Likewise, individual enumeration values be conditional. This requires
-the longhand form of ENUM-VALUE_.
+Likewise, individual enumeration values may be conditional. This
+requires the longhand form of ENUM-VALUE_.
Example: an enum type with unconditional value 'foo' and conditional
value 'bar' ::
@@ -1158,9 +1158,8 @@ Example: the SchemaInfo for EVENT_C from section Events_ ::
Type "q_obj-EVENT_C-arg" is an implicitly defined object type with
the two members from the event's definition.
-The SchemaInfo for struct and union types has meta-type "object".
-
-The SchemaInfo for a struct type has variant member "members".
+The SchemaInfo for struct and union types has meta-type "object" and
+variant member "members".
The SchemaInfo for a union type additionally has variant members "tag"
and "variants".
--
2.39.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] docs/devel/qapi-code-gen: Belatedly update features documentation
2023-02-13 13:20 ` [PATCH 1/2] docs/devel/qapi-code-gen: Belatedly update features documentation Markus Armbruster
@ 2023-02-13 15:05 ` Eric Blake
0 siblings, 0 replies; 8+ messages in thread
From: Eric Blake @ 2023-02-13 15:05 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel, michael.roth, jsnow, marcandre.lureau
On Mon, Feb 13, 2023 at 02:20:08PM +0100, Markus Armbruster wrote:
> Commit 013b4efc9be "qapi: Add feature flags to remaining
> definitions" (v5.0.0), commit 84ab0086879 "qapi: Add feature flags to
> struct members" (v5.0.0), and commit b6c18755e41 "qapi: Add feature
> flags to enum members" (v6.2.0) neglected to update section
> "Features". Make up for that.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> docs/devel/qapi-code-gen.rst | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
2023-02-13 13:20 ` [PATCH 2/2] docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo Markus Armbruster
@ 2023-02-13 15:07 ` Eric Blake
0 siblings, 0 replies; 8+ messages in thread
From: Eric Blake @ 2023-02-13 15:07 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel, michael.roth, jsnow, marcandre.lureau
On Mon, Feb 13, 2023 at 02:20:09PM +0100, Markus Armbruster wrote:
> Documentation of enumeration value conditions lacks a 'may'. Fix
> that.
>
> Clarify SchemaInfo documentation for struct and union types.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> docs/devel/qapi-code-gen.rst | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements
2023-02-13 13:20 [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements Markus Armbruster
2023-02-13 13:20 ` [PATCH 1/2] docs/devel/qapi-code-gen: Belatedly update features documentation Markus Armbruster
2023-02-13 13:20 ` [PATCH 2/2] docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo Markus Armbruster
@ 2023-02-14 16:49 ` John Snow
2023-02-14 16:51 ` John Snow
2 siblings, 1 reply; 8+ messages in thread
From: John Snow @ 2023-02-14 16:49 UTC (permalink / raw)
To: Markus Armbruster
Cc: qemu-devel, Michael Roth, Eric Blake, Marc-André Lureau
[-- Attachment #1: Type: text/plain, Size: 418 bytes --]
On Mon, Feb 13, 2023, 8:20 AM Markus Armbruster <armbru@redhat.com> wrote:
> *** BLURB HERE ***
>
🤫
> Markus Armbruster (2):
> docs/devel/qapi-code-gen: Belatedly update features documentation
> docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
>
> docs/devel/qapi-code-gen.rst | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> --
> 2.39.0
>
>
[-- Attachment #2: Type: text/html, Size: 964 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements
2023-02-14 16:49 ` [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements John Snow
@ 2023-02-14 16:51 ` John Snow
2023-02-15 12:07 ` Markus Armbruster
0 siblings, 1 reply; 8+ messages in thread
From: John Snow @ 2023-02-14 16:51 UTC (permalink / raw)
To: Markus Armbruster
Cc: qemu-devel, Michael Roth, Eric Blake, Marc-André Lureau
[-- Attachment #1: Type: text/plain, Size: 585 bytes --]
On Tue, Feb 14, 2023, 11:49 AM John Snow <jsnow@redhat.com> wrote:
>
>
> On Mon, Feb 13, 2023, 8:20 AM Markus Armbruster <armbru@redhat.com> wrote:
>
>> *** BLURB HERE ***
>>
>
> 🤫
>
>
>> Markus Armbruster (2):
>> docs/devel/qapi-code-gen: Belatedly update features documentation
>> docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
>>
>> docs/devel/qapi-code-gen.rst | 16 ++++++++--------
>> 1 file changed, 8 insertions(+), 8 deletions(-)
>>
>> --
>> 2.39.0
>>
>
Oops, also meant to add:
Reviewed-by: John Snow <jsnow@redhat.com>
[-- Attachment #2: Type: text/html, Size: 1539 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements
2023-02-14 16:51 ` John Snow
@ 2023-02-15 12:07 ` Markus Armbruster
0 siblings, 0 replies; 8+ messages in thread
From: Markus Armbruster @ 2023-02-15 12:07 UTC (permalink / raw)
To: John Snow; +Cc: qemu-devel, Michael Roth, Eric Blake, Marc-André Lureau
John Snow <jsnow@redhat.com> writes:
> On Tue, Feb 14, 2023, 11:49 AM John Snow <jsnow@redhat.com> wrote:
>
>>
>>
>> On Mon, Feb 13, 2023, 8:20 AM Markus Armbruster <armbru@redhat.com> wrote:
>>
>>> *** BLURB HERE ***
>>>
>>
>> 🤫
Uh, thank you for following my written instructions literally, and...
>>> Markus Armbruster (2):
>>> docs/devel/qapi-code-gen: Belatedly update features documentation
>>> docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
>>>
>>> docs/devel/qapi-code-gen.rst | 16 ++++++++--------
>>> 1 file changed, 8 insertions(+), 8 deletions(-)
>>>
>>> --
>>> 2.39.0
>>>
>>
> Oops, also meant to add:
>
> Reviewed-by: John Snow <jsnow@redhat.com>
... thank you for reviewing!
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-02-15 12:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13 13:20 [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements Markus Armbruster
2023-02-13 13:20 ` [PATCH 1/2] docs/devel/qapi-code-gen: Belatedly update features documentation Markus Armbruster
2023-02-13 15:05 ` Eric Blake
2023-02-13 13:20 ` [PATCH 2/2] docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo Markus Armbruster
2023-02-13 15:07 ` Eric Blake
2023-02-14 16:49 ` [PATCH 0/2] docs/devel/qapi-code-gen: Update features doc, minor improvements John Snow
2023-02-14 16:51 ` John Snow
2023-02-15 12:07 ` Markus Armbruster
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).