QAPI patches patches for 2020-08-03
The following changes since commit d74824cf7c8b352f9045e949dc636c7207a41eee:
Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20200731' into staging (2020-07-31 10:28:13 +0100)
are available in the Git repository at:
git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2020-08-03
for you to fetch changes up to f7160f32186b4ae1e1327e3bd05060fffec8f9ae:
schemas: Add vim modeline (2020-08-03 08:28:08 +0200)
----------------------------------------------------------------
QAPI patches patches for 2020-08-03
----------------------------------------------------------------
Andrea Bolognani (1):
schemas: Add vim modeline
Markus Armbruster (1):
qapi: Delete unwanted indentation of top-level expressions
Peter Maydell (1):
qapi/machine.json: Fix missing newline in doc comment
docs/interop/firmware.json | 1 + docs/interop/vhost-user.json | 1 + qapi/authz.json | 1 + qapi/block-core.json | 27 ++++++++++++++------------- qapi/block.json | 1 + qapi/char.json | 1 + qapi/common.json | 1 + qapi/control.json | 1 + qapi/crypto.json | 1 + qapi/dump.json | 1 + qapi/error.json | 1 + qapi/introspect.json | 1 + qapi/job.json | 1 + qapi/machine-target.json | 1 + qapi/machine.json | 4 +++- qapi/migration.json | 1 + qapi/misc-target.json | 1 + qapi/misc.json | 1 + qapi/net.json | 1 + qapi/qapi-schema.json | 1 + qapi/qdev.json | 1 + qapi/qom.json | 1 + qapi/rdma.json | 1 + qapi/rocker.json | 1 + qapi/run-state.json | 1 + qapi/sockets.json | 1 + qapi/tpm.json | 1 + qapi/transaction.json | 1 + qapi/ui.json | 5 +++-- qga/qapi-schema.json | 1 + storage-daemon/qapi/qapi-schema.json | 1 + tests/qapi-schema/doc-good.json | 2 ++ tests/qapi-schema/include/sub-module.json | 1 + tests/qapi-schema/qapi-schema-test.json | 1 + tests/qapi-schema/sub-sub-module.json | 1 + 35 files changed, 53 insertions(+), 16 deletions(-)
Signature · 1 line
2.26.2
[PULL 1/3] qapi/machine.json: Fix missing newline in doc comment
From: Peter Maydell <[email protected]>
In commit 176d2cda0dee9f4 we added the @die-id field to the CpuInstanceProperties struct, but in the process accidentally removed the newline between the doc-comment lines for @core-id and @thread-id.
Put the newline back in; this fixes a misformatting in the generated HTML QMP reference manual.
Message-Id: <[email protected]>
--- qapi/machine.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
qapi/machine.json +2 -1
@@ -825,7 +825,8 @@ # @node-id: NUMA node ID the CPU belongs to # @socket-id: socket number within node/board the CPU belongs to # @die-id: die number within node/board the CPU belongs to (Since 4.1) -# @core-id: core number within die the CPU belongs to# @thread-id: thread number within core the CPU belongs to +# @core-id: core number within die the CPU belongs to +# @thread-id: thread number within core the CPU belongs to # # Note: currently there are 5 properties that could be present # but management should be prepared to pass through other
Signature · 1 line
2.26.2
[PULL 2/3] qapi: Delete unwanted indentation of top-level expressions
In reply to Markus ArmbrusterMessage-Id: <[email protected]>
--- qapi/block-core.json | 26 +++++++++++++------------- qapi/ui.json | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-)
qapi/block-core.json +13 -13
@@ -1847,9 +1847,9 @@ # # Since: 4.0 ## - { 'enum': 'BlockPermission', - 'data': [ 'consistent-read', 'write', 'write-unchanged', 'resize', - 'graph-mod' ] } +{ 'enum': 'BlockPermission', + 'data': [ 'consistent-read', 'write', 'write-unchanged', 'resize', + 'graph-mod' ] } ## # @XDbgBlockGraphEdge: #
@@ -2155,8 +2155,8 @@ # <- { "return": {} } # ## - { 'command': 'block-dirty-bitmap-enable', - 'data': 'BlockDirtyBitmap' } +{ 'command': 'block-dirty-bitmap-enable', + 'data': 'BlockDirtyBitmap' } ## # @block-dirty-bitmap-disable:
@@ -2176,8 +2176,8 @@ # <- { "return": {} } # ## - { 'command': 'block-dirty-bitmap-disable', - 'data': 'BlockDirtyBitmap' } +{ 'command': 'block-dirty-bitmap-disable', + 'data': 'BlockDirtyBitmap' } ## # @block-dirty-bitmap-merge:
@@ -2208,8 +2208,8 @@ # <- { "return": {} } # ## - { 'command': 'block-dirty-bitmap-merge', - 'data': 'BlockDirtyBitmapMerge' } +{ 'command': 'block-dirty-bitmap-merge', + 'data': 'BlockDirtyBitmapMerge' } ## # @BlockDirtyBitmapSha256:
@@ -2220,8 +2220,8 @@ # # Since: 2.10 ## - { 'struct': 'BlockDirtyBitmapSha256', - 'data': {'sha256': 'str'} } +{ 'struct': 'BlockDirtyBitmapSha256', + 'data': {'sha256': 'str'} } ## # @x-debug-block-dirty-bitmap-sha256:
@@ -2235,8 +2235,8 @@ # # Since: 2.10 ## - { 'command': 'x-debug-block-dirty-bitmap-sha256', - 'data': 'BlockDirtyBitmap', 'returns': 'BlockDirtyBitmapSha256' } +{ 'command': 'x-debug-block-dirty-bitmap-sha256', + 'data': 'BlockDirtyBitmap', 'returns': 'BlockDirtyBitmapSha256' } ## # @blockdev-mirror:
qapi/ui.json +2 -2
@@ -1081,8 +1081,8 @@ # Since: 3.0 # ## - { 'enum' : 'DisplayGLMode', - 'data' : [ 'off', 'on', 'core', 'es' ] } +{ 'enum' : 'DisplayGLMode', + 'data' : [ 'off', 'on', 'core', 'es' ] } ## # @DisplayCurses:
Signature · 1 line
2.26.2
[PULL 3/3] schemas: Add vim modeline
In reply to Markus ArmbrusterFrom: Andrea Bolognani <[email protected]>
The various schemas included in QEMU use a JSON-based format which is, however, strictly speaking not valid JSON.
As a consequence, when vim tries to apply syntax highlight rules for JSON (as guessed from the file name), the result is an unreadable mess which mostly consist of red markers pointing out supposed errors in, well, pretty much everything.
Using Python syntax highlighting produces much better results, and in fact these files already start with specially-formatted comments that instruct Emacs to process them as if they were Python files.
This commit adds the equivalent special comments for vim.
Message-Id: <[email protected]>
--- docs/interop/firmware.json | 1 + docs/interop/vhost-user.json | 1 + qapi/authz.json | 1 + qapi/block-core.json | 1 + qapi/block.json | 1 + qapi/char.json | 1 + qapi/common.json | 1 + qapi/control.json | 1 + qapi/crypto.json | 1 + qapi/dump.json | 1 + qapi/error.json | 1 + qapi/introspect.json | 1 + qapi/job.json | 1 + qapi/machine-target.json | 1 + qapi/machine.json | 1 + qapi/migration.json | 1 + qapi/misc-target.json | 1 + qapi/misc.json | 1 + qapi/net.json | 1 + qapi/qapi-schema.json | 1 + qapi/qdev.json | 1 + qapi/qom.json | 1 + qapi/rdma.json | 1 + qapi/rocker.json | 1 + qapi/run-state.json | 1 + qapi/sockets.json | 1 + qapi/tpm.json | 1 + qapi/transaction.json | 1 + qapi/ui.json | 1 + qga/qapi-schema.json | 1 + storage-daemon/qapi/qapi-schema.json | 1 + tests/qapi-schema/doc-good.json | 2 ++ tests/qapi-schema/include/sub-module.json | 1 + tests/qapi-schema/qapi-schema-test.json | 1 + tests/qapi-schema/sub-sub-module.json | 1 + 35 files changed, 36 insertions(+)
docs/interop/firmware.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # Copyright (C) 2018 Red Hat, Inc. #
docs/interop/vhost-user.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # Copyright (C) 2018 Red Hat, Inc. #
qapi/authz.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # QAPI authz definitions
qapi/block-core.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python ## # == Block core (VM unrelated)
qapi/block.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python ## # = Block devices
qapi/char.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/common.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python ## # = Common data types
qapi/control.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/crypto.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/dump.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory.
qapi/error.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python ## # = QMP errors
qapi/introspect.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # Copyright (C) 2015 Red Hat, Inc. #
qapi/job.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python ## # == Background jobs
qapi/machine-target.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory.
qapi/machine.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory.
qapi/migration.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/misc-target.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/misc.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/net.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/qapi-schema.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python ## # = Introduction #
qapi/qdev.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory.
qapi/qom.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory.
qapi/rdma.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/rocker.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python ## # = Rocker switch device
qapi/run-state.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/sockets.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python ## # = Socket data types
qapi/tpm.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/transaction.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qapi/ui.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # ##
qga/qapi-schema.json +1 -0
@@ -1,4 +1,5 @@ # *-*- Mode: Python -*-* +# vim: filetype=python ## #
storage-daemon/qapi/qapi-schema.json +1 -0
@@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: filetype=python # Note that modules are shared with the QEMU main schema under the assumption # that the storage daemon schema is a subset of the main schema. For the shared
tests/qapi-schema/doc-good.json +2 -0
@@ -1,4 +1,6 @@ # -*- Mode: Python -*- +# vim: filetype=python +# # Positive QAPI doc comment tests { 'pragma': { 'doc-required': true } }
tests/qapi-schema/include/sub-module.json +1 -0
@@ -1,4 +1,5 @@ # *-*- Mode: Python -*-* +# vim: filetype=python # Sub-module of ../qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.json +1 -0
@@ -1,4 +1,5 @@ # *-*- Mode: Python -*-* +# vim: filetype=python # This file is a stress test of supported qapi constructs that must # parse and compile correctly.
tests/qapi-schema/sub-sub-module.json +1 -0
@@ -1,4 +1,5 @@ # *-*- Mode: Python -*-* +# vim: filetype=python # Sub-module of sub-module include/sub-module.json of qapi-schema-test.json
Signature · 1 line
2.26.2
Peter Maydell
AppliedQuoted 7 lines · Markus Armbruster
The following changes since commit
d74824cf7c8b352f9045e949dc636c7207a41eee:Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20200731' into staging (2020-07-31 10:28:13 +0100)
are available in the Git repository at:
Quoted 8 lines
git://repo.or.cz/qemu/armbru.gittags/pull-qapi-2020-08-03for you to fetch changes up to
f7160f32186b4ae1e1327e3bd05060fffec8f9ae:schemas: Add vim modeline (2020-08-03 08:28:08 +0200)
----------------------------------------------------------------
QAPI patches patches for 2020-08-03
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.
-- PMM