Skip to contentSkip to conversation

QAPI patches patches for 2020-08-03

GIT PULL Applied Markus Armbruster 2 participants 5 messages Aug 3, 2020

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

[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
index f59144023c..daede5ab14 100644
@@ -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
#2 lore raw

[PULL 2/3] qapi: Delete unwanted indentation of top-level expressions

In reply to Markus Armbruster

Message-Id: <[email protected]>

[One more line de-indented]
---
 qapi/block-core.json | 26 +++++++++++++-------------
 qapi/ui.json         |  4 ++--
 2 files changed, 15 insertions(+), 15 deletions(-)
qapi/block-core.json +13 -13
index ab7bf3c612..49edb4fdae 100644
@@ -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
index e16e98a060..1568cfeaad 100644
@@ -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
#3 lore raw

[PULL 3/3] schemas: Add vim modeline

In reply to Markus Armbruster

From: 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
index 240f565397..989f10b626 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 # Copyright (C) 2018 Red Hat, Inc.
 #
docs/interop/vhost-user.json +1 -0
index ef8ac5941f..feb5fe58ca 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 # Copyright (C) 2018 Red Hat, Inc.
 #
qapi/authz.json +1 -0
index 1c836a3abd..f3e9745426 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 # QAPI authz definitions
 
qapi/block-core.json +1 -0
index 49edb4fdae..197bdc1c36 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # == Block core (VM unrelated)
qapi/block.json +1 -0
index 2ddbfa8306..c54a393cf3 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = Block devices
qapi/char.json +1 -0
index daceb20f84..8aeedf96b2 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/common.json +1 -0
index 7b9cbcd97b..716712d4b3 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = Common data types
qapi/control.json +1 -0
index 6b816bb61f..de51e9916c 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/crypto.json +1 -0
index 5a68e0db25..bb7930d332 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/dump.json +1 -0
index a1eed7b15c..f7c4267e3f 100644
@@ -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
index 3fad08f506..94a6502de9 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = QMP errors
qapi/introspect.json +1 -0
index b1aabd4cfd..944bb87a20 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 # Copyright (C) 2015 Red Hat, Inc.
 #
qapi/job.json +1 -0
index c48a0c3e34..280c2f76f1 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # == Background jobs
qapi/machine-target.json +1 -0
index f2c82949d8..698850cc78 100644
@@ -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
index daede5ab14..481b1f07ec 100644
@@ -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
index d5000558c6..ea53b23dca 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/misc-target.json +1 -0
index dee3b45930..1e561fa97b 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/misc.json +1 -0
index 149c925246..9d32820dc1 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/net.json +1 -0
index 558d520a2f..ddb113e5e5 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/qapi-schema.json +1 -0
index 43b0ba0dea..f03ff91ceb 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 ##
 # = Introduction
 #
qapi/qdev.json +1 -0
index f4ed9735c4..13254529bf 100644
@@ -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
index 8abe998962..0b0b92944b 100644
@@ -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
index b58105b1b6..a1d2175a8b 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/rocker.json +1 -0
index 52597db491..b48e49a89b 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = Rocker switch device
qapi/run-state.json +1 -0
index 2e22907740..7cc9f96a5b 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/sockets.json +1 -0
index cbd6ef35d0..c0c640a5b0 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = Socket data types
qapi/tpm.json +1 -0
index dc1f081739..6a10c9ed8d 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/transaction.json +1 -0
index b6c11158f0..15ddebdbc3 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qapi/ui.json +1 -0
index 1568cfeaad..9d6721037f 100644
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
qga/qapi-schema.json +1 -0
index 408a662ea5..b1e9ed836d 100644
@@ -1,4 +1,5 @@
 # *-*- Mode: Python -*-*
+# vim: filetype=python
 
 ##
 #
storage-daemon/qapi/qapi-schema.json +1 -0
index 14f4f8fe61..6100d1f0c9 100644
@@ -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
index ddd89d1233..9da72a1f55 100644
@@ -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
index afdb267228..b9f7b9bb56 100644
@@ -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
index 6b1f05afa7..3a9f2cbb33 100644
@@ -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
index 524ef9b83f..94f36ec0b1 100644
@@ -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
#4 lore raw
In reply to Markus Armbruster
Quoted 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.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

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.

-- PMM