* [PULL 0/5] QAPI patches patches for 2020-11-09
@ 2020-11-09 9:02 Markus Armbruster
2020-11-09 9:02 ` [PULL 1/5] docs/devel/qapi-code-gen: Fix up examples Markus Armbruster
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Markus Armbruster @ 2020-11-09 9:02 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell
The following changes since commit 3493c36f0371777c62d1d72b205b0eb6117e2156:
Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20201106' into staging (2020-11-06 13:43:28 +0000)
are available in the Git repository at:
git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2020-11-09
for you to fetch changes up to 143d51e1792ecf2c8e5b0fc3a8c6022676c723d4:
block: Remove unused BlockDeviceMapEntry (2020-11-09 09:14:21 +0100)
----------------------------------------------------------------
QAPI patches patches for 2020-11-09
----------------------------------------------------------------
Markus Armbruster (4):
docs/devel/qapi-code-gen: Fix up examples
MAINTAINERS: Add QAPI schema modules to their subsystems
qapi: Fix missing headers in QMP Reference Manual
block: Remove unused BlockDeviceMapEntry
Max Reitz (1):
qapi/block-core: Improve MapEntry documentation
docs/devel/qapi-code-gen.txt | 6 ++++--
qapi/audio.json | 4 ++++
qapi/authz.json | 6 ++++--
qapi/block-core.json | 47 ++++++++++++--------------------------------
MAINTAINERS | 6 ++++++
5 files changed, 31 insertions(+), 38 deletions(-)
--
2.26.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PULL 1/5] docs/devel/qapi-code-gen: Fix up examples
2020-11-09 9:02 [PULL 0/5] QAPI patches patches for 2020-11-09 Markus Armbruster
@ 2020-11-09 9:02 ` Markus Armbruster
2020-11-09 9:02 ` [PULL 2/5] MAINTAINERS: Add QAPI schema modules to their subsystems Markus Armbruster
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Markus Armbruster @ 2020-11-09 9:02 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Marc-André Lureau
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201027121026.3025930-1-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
docs/devel/qapi-code-gen.txt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docs/devel/qapi-code-gen.txt b/docs/devel/qapi-code-gen.txt
index c6438c6aa9..6906a06ad2 100644
--- a/docs/devel/qapi-code-gen.txt
+++ b/docs/devel/qapi-code-gen.txt
@@ -393,7 +393,7 @@ is identical on the wire to:
{ 'enum': 'Enum', 'data': ['one', 'two'] }
{ 'struct': 'Branch1', 'data': { 'data': 'str' } }
{ 'struct': 'Branch2', 'data': { 'data': 'int' } }
- { 'union': 'Flat': 'base': { 'type': 'Enum' }, 'discriminator': 'type',
+ { 'union': 'Flat', 'base': { 'type': 'Enum' }, 'discriminator': 'type',
'data': { 'one': 'Branch1', 'two': 'Branch2' } }
The optional 'if' member specifies a conditional. See "Configuring
@@ -590,6 +590,8 @@ When in doubt, do not implement OOB execution support.
Member 'allow-preconfig' declares whether the command is available
before the machine is built. It defaults to false. For example:
+ { 'enum': 'QMPCapability',
+ 'data': [ 'oob' ] }
{ 'command': 'qmp_capabilities',
'data': { '*enable': [ 'QMPCapability' ] },
'allow-preconfig': true }
@@ -824,7 +826,7 @@ Example: a struct with conditional feature 'allow-negative-numbers'
{ 'struct': 'TestType',
'data': { 'number': 'int' },
'features': [ { 'name': 'allow-negative-numbers',
- 'if' 'defined(IFCOND)' } ] }
+ 'if': 'defined(IFCOND)' } ] }
Please note that you are responsible to ensure that the C code will
compile with an arbitrary combination of conditions, since the
--
2.26.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PULL 2/5] MAINTAINERS: Add QAPI schema modules to their subsystems
2020-11-09 9:02 [PULL 0/5] QAPI patches patches for 2020-11-09 Markus Armbruster
2020-11-09 9:02 ` [PULL 1/5] docs/devel/qapi-code-gen: Fix up examples Markus Armbruster
@ 2020-11-09 9:02 ` Markus Armbruster
2020-11-09 9:02 ` [PULL 3/5] qapi: Fix missing headers in QMP Reference Manual Markus Armbruster
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Markus Armbruster @ 2020-11-09 9:02 UTC (permalink / raw)
To: qemu-devel
Cc: peter.maydell, Daniel P . Berrange, Gerd Hoffmann,
Stefan Hajnoczi, Philippe Mathieu-Daudé
Add the relevant QAPI schema modules to section Audio, QMP, Tracing,
Cryptography.
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201102081550.171061-2-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
---
MAINTAINERS | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 63223e1183..30e1eccbec 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1909,6 +1909,7 @@ Rocker
M: Jiri Pirko <jiri@resnulli.us>
S: Maintained
F: hw/net/rocker/
+F: qapi/rocker.json
F: tests/rocker/
F: docs/specs/rocker.txt
@@ -2111,6 +2112,7 @@ S: Maintained
F: audio/
F: hw/audio/
F: include/hw/audio/
+F: qapi/audio.json
F: tests/qtest/ac97-test.c
F: tests/qtest/es1370-test.c
F: tests/qtest/intel-hda-test.c
@@ -2490,7 +2492,9 @@ F: monitor/monitor-internal.h
F: monitor/qmp*
F: monitor/misc.c
F: monitor/monitor.c
+F: qapi/control.json
F: qapi/error.json
+F: qapi/introspect.json
F: docs/devel/*qmp-*
F: docs/interop/*qmp-*
F: scripts/qmp/
@@ -2551,6 +2555,7 @@ S: Maintained
F: trace/
F: trace-events
F: docs/qemu-option-trace.rst.inc
+F: qapi/trace.json
F: scripts/tracetool.py
F: scripts/tracetool/
F: scripts/qemu-trace-stap*
@@ -2610,6 +2615,7 @@ M: Daniel P. Berrange <berrange@redhat.com>
S: Maintained
F: crypto/
F: include/crypto/
+F: qapi/crypto.json
F: tests/test-crypto-*
F: tests/benchmark-crypto-*
F: tests/crypto-tls-*
--
2.26.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PULL 3/5] qapi: Fix missing headers in QMP Reference Manual
2020-11-09 9:02 [PULL 0/5] QAPI patches patches for 2020-11-09 Markus Armbruster
2020-11-09 9:02 ` [PULL 1/5] docs/devel/qapi-code-gen: Fix up examples Markus Armbruster
2020-11-09 9:02 ` [PULL 2/5] MAINTAINERS: Add QAPI schema modules to their subsystems Markus Armbruster
@ 2020-11-09 9:02 ` Markus Armbruster
2020-11-09 9:02 ` [PULL 4/5] qapi/block-core: Improve MapEntry documentation Markus Armbruster
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Markus Armbruster @ 2020-11-09 9:02 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Daniel P . Berrange, Gerd Hoffmann
Audio stuff is under "Miscellanea", and authorization stuff is under
"Input". Add suitable header doc comments to correct that.
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201102081550.171061-3-armbru@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
---
qapi/audio.json | 4 ++++
qapi/authz.json | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/qapi/audio.json b/qapi/audio.json
index 3b843878d2..072ed79def 100644
--- a/qapi/audio.json
+++ b/qapi/audio.json
@@ -5,6 +5,10 @@
# This work is licensed under the terms of the GNU GPL, version 2 or later.
# See the COPYING file in the top-level directory.
+##
+# = Audio
+##
+
##
# @AudiodevPerDirectionOptions:
#
diff --git a/qapi/authz.json b/qapi/authz.json
index f3e9745426..42afe752d1 100644
--- a/qapi/authz.json
+++ b/qapi/authz.json
@@ -1,7 +1,9 @@
# -*- Mode: Python -*-
# vim: filetype=python
-#
-# QAPI authz definitions
+
+##
+# = User authorization
+##
##
# @QAuthZListPolicy:
--
2.26.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PULL 4/5] qapi/block-core: Improve MapEntry documentation
2020-11-09 9:02 [PULL 0/5] QAPI patches patches for 2020-11-09 Markus Armbruster
` (2 preceding siblings ...)
2020-11-09 9:02 ` [PULL 3/5] qapi: Fix missing headers in QMP Reference Manual Markus Armbruster
@ 2020-11-09 9:02 ` Markus Armbruster
2020-11-09 9:02 ` [PULL 5/5] block: Remove unused BlockDeviceMapEntry Markus Armbruster
2020-11-09 16:07 ` [PULL 0/5] QAPI patches patches for 2020-11-09 Peter Maydell
5 siblings, 0 replies; 7+ messages in thread
From: Markus Armbruster @ 2020-11-09 9:02 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Max Reitz
From: Max Reitz <mreitz@redhat.com>
MapEntry and BlockDeviceMapEntry are kind of the same thing, and the
latter is not used, so we want to remove it. However, the documentation
it provides for some fields is better than that of MapEntry, so steal
some of it for the latter.
(And adjust them a bit in the process, because I feel like we can make
them even clearer.)
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20201104165513.72720-2-mreitz@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
qapi/block-core.json | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 1b8b4156b4..3f86675357 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -244,17 +244,25 @@
#
# Mapping information from a virtual block range to a host file range
#
-# @start: the start byte of the mapped virtual range
+# @start: virtual (guest) offset of the first byte described by this
+# entry
#
# @length: the number of bytes of the mapped virtual range
#
-# @data: whether the mapped range has data
+# @data: reading the image will actually read data from a file (in
+# particular, if @offset is present this means that the sectors
+# are not simply preallocated, but contain actual data in raw
+# format)
#
-# @zero: whether the virtual blocks are zeroed
+# @zero: whether the virtual blocks read as zeroes
#
-# @depth: the depth of the mapping
+# @depth: number of layers (0 = top image, 1 = top image's backing
+# file, ..., n - 1 = bottom image (where n is the number of
+# images in the chain)) before reaching one for which the
+# range is allocated
#
-# @offset: the offset in file that the virtual sectors are mapped to
+# @offset: if present, the image file stores the data for this range
+# in raw format at the given (host) offset
#
# @filename: filename that is referred to by @offset
#
--
2.26.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PULL 5/5] block: Remove unused BlockDeviceMapEntry
2020-11-09 9:02 [PULL 0/5] QAPI patches patches for 2020-11-09 Markus Armbruster
` (3 preceding siblings ...)
2020-11-09 9:02 ` [PULL 4/5] qapi/block-core: Improve MapEntry documentation Markus Armbruster
@ 2020-11-09 9:02 ` Markus Armbruster
2020-11-09 16:07 ` [PULL 0/5] QAPI patches patches for 2020-11-09 Peter Maydell
5 siblings, 0 replies; 7+ messages in thread
From: Markus Armbruster @ 2020-11-09 9:02 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Paolo Bonzini
BlockDeviceMapEntry has never been used. It was added in commit
facd6e2 "so that it is published through the introspection mechanism."
What exactly introspecting types that aren't used for anything could
accomplish isn't clear. What "introspection mechanism" to use is also
nebulous. To the best of my knowledge, there has never been one that
covered this type. Certainly not query-qmp-schema, which includes
only types that are actually used in QMP.
Not being able to introspect BlockDeviceMapEntry hasn't bothered
anyone enough to complain in almost four years. Get rid of it.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Eric Blake <eblake@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201104165513.72720-3-mreitz@redhat.com>
---
qapi/block-core.json | 29 -----------------------------
1 file changed, 29 deletions(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 3f86675357..04ad80bc1e 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -426,35 +426,6 @@
##
{ 'enum': 'BlockDeviceIoStatus', 'data': [ 'ok', 'failed', 'nospace' ] }
-##
-# @BlockDeviceMapEntry:
-#
-# Entry in the metadata map of the device (returned by "qemu-img map")
-#
-# @start: Offset in the image of the first byte described by this entry
-# (in bytes)
-#
-# @length: Length of the range described by this entry (in bytes)
-#
-# @depth: Number of layers (0 = top image, 1 = top image's backing file, etc.)
-# before reaching one for which the range is allocated. The value is
-# in the range 0 to the depth of the image chain - 1.
-#
-# @zero: the sectors in this range read as zeros
-#
-# @data: reading the image will actually read data from a file (in particular,
-# if @offset is present this means that the sectors are not simply
-# preallocated, but contain actual data in raw format)
-#
-# @offset: if present, the image file stores the data for this range in
-# raw format at the given offset.
-#
-# Since: 1.7
-##
-{ 'struct': 'BlockDeviceMapEntry',
- 'data': { 'start': 'int', 'length': 'int', 'depth': 'int', 'zero': 'bool',
- 'data': 'bool', '*offset': 'int' } }
-
##
# @DirtyBitmapStatus:
#
--
2.26.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PULL 0/5] QAPI patches patches for 2020-11-09
2020-11-09 9:02 [PULL 0/5] QAPI patches patches for 2020-11-09 Markus Armbruster
` (4 preceding siblings ...)
2020-11-09 9:02 ` [PULL 5/5] block: Remove unused BlockDeviceMapEntry Markus Armbruster
@ 2020-11-09 16:07 ` Peter Maydell
5 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2020-11-09 16:07 UTC (permalink / raw)
To: Markus Armbruster; +Cc: QEMU Developers
On Mon, 9 Nov 2020 at 09:02, Markus Armbruster <armbru@redhat.com> wrote:
>
> The following changes since commit 3493c36f0371777c62d1d72b205b0eb6117e2156:
>
> Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20201106' into staging (2020-11-06 13:43:28 +0000)
>
> are available in the Git repository at:
>
> git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2020-11-09
>
> for you to fetch changes up to 143d51e1792ecf2c8e5b0fc3a8c6022676c723d4:
>
> block: Remove unused BlockDeviceMapEntry (2020-11-09 09:14:21 +0100)
>
> ----------------------------------------------------------------
> QAPI patches patches for 2020-11-09
>
> ----------------------------------------------------------------
> Markus Armbruster (4):
> docs/devel/qapi-code-gen: Fix up examples
> MAINTAINERS: Add QAPI schema modules to their subsystems
> qapi: Fix missing headers in QMP Reference Manual
> block: Remove unused BlockDeviceMapEntry
>
> Max Reitz (1):
> qapi/block-core: Improve MapEntry documentation
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.2
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-11-09 16:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-09 9:02 [PULL 0/5] QAPI patches patches for 2020-11-09 Markus Armbruster
2020-11-09 9:02 ` [PULL 1/5] docs/devel/qapi-code-gen: Fix up examples Markus Armbruster
2020-11-09 9:02 ` [PULL 2/5] MAINTAINERS: Add QAPI schema modules to their subsystems Markus Armbruster
2020-11-09 9:02 ` [PULL 3/5] qapi: Fix missing headers in QMP Reference Manual Markus Armbruster
2020-11-09 9:02 ` [PULL 4/5] qapi/block-core: Improve MapEntry documentation Markus Armbruster
2020-11-09 9:02 ` [PULL 5/5] block: Remove unused BlockDeviceMapEntry Markus Armbruster
2020-11-09 16:07 ` [PULL 0/5] QAPI patches patches for 2020-11-09 Peter Maydell
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).