qapi: Consistently use x.y with since

docs/devel/qapi-code-gen.rst documents "Since: x.y.z" and "(since
x.y.z)", but we almost always use just x.y.  Makes sense, because .z
is exclusively for stable branches, where we generally don't mess with
QAPI schemas.

Adjust the doc and the exceptions to the ruling practice.  Do not
touch versions prior to 3.0.0, because .z was not for stable branches
back then.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20261103073311.3501327-1-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Markus Armbruster committed 2026-11-06 12:54:36 +01:00
1 parent f71afb409a
commit 8570936f62
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -1001,7 +1001,7 @@ indented like this::
.. FIXME union branches should be described, too.
Extensions added after the definition was first released carry a
"(since x.y.z)" comment.
"(since x.y)" comment.
The feature descriptions must be preceded by a blank line and then a
line "Features:", like this::
@@ -1034,7 +1034,7 @@ detailing a relevant error condition. For example::
# - If @device does not exist, DeviceNotFound
# - Any other error returns a GenericError.
A "Since: x.y.z" tagged section lists the release that introduced the
A "Since: x.y" tagged section lists the release that introduced the
definition.
"TODO" sections are not rendered (they are for developers, not users of
+2 -2
View File
@@ -283,7 +283,7 @@
# and can be shared between multiple guests. No NVRAM template
# will be specified.
#
# Since: 7.0.0
# Since: 7.0
##
{ 'enum': 'FirmwareFlashMode',
'data': [ 'split', 'combined', 'stateless' ] }
@@ -296,7 +296,7 @@
#
# @mode: Describes how the firmware build handles code versus variable
# storage. If not present, it must be treated as if it was
# configured with value @split. Since: 7.0.0
# configured with value @split. (Since: 7.0)
#
# @executable: Identifies the firmware executable. The @mode
# indicates whether there will be an associated NVRAM template
+3 -3
View File
@@ -78,7 +78,7 @@
#
# @xen: Xen
#
# Since: 10.2.0
# Since: 10.2
##
{ 'enum': 'Accelerator', 'data': ['hvf', 'kvm', 'mshv', 'nvmm', 'qtest', 'tcg', 'whpx', 'xen'] }
@@ -91,7 +91,7 @@
# @present: the list of accelerators that are built into this
# executable
#
# Since: 10.2.0
# Since: 10.2
##
{ 'struct': 'AcceleratorInfo', 'data': {'enabled': 'Accelerator', 'present': ['Accelerator']} }
@@ -101,7 +101,7 @@
#
# Returns: @AcceleratorInfo
#
# Since: 10.2.0
# Since: 10.2
#
# .. qmp-example::
#
+1 -1
View File
@@ -57,7 +57,7 @@
#
# @ripemd160: RIPEMD-160. (since 2.7)
#
# @sm3: SM3. (since 9.2.0)
# @sm3: SM3. (since 9.2)
#
# Since: 2.6
##