QAPI patches patches for 2022-04-05
[PULL 05/10] qapi: fix example of query-vnc command
In reply to Markus ArmbrusterFrom: Victor Toso <[email protected]>
The return value is missing the mandatory member @websocket. Fix it.
Message-Id: <[email protected]>
--- qapi/ui.json | 1 + 1 file changed, 1 insertion(+)
qapi/ui.json +1 -0
@@ -658,6 +658,7 @@ # "host":"127.0.0.1", # "service":"50401", # "family":"ipv4" +# "websocket":false, # } # ] # }
Signature · 1 line
2.35.1
[PULL 01/10] qapi: fix example of netdev_add command
In reply to Markus ArmbrusterFrom: Victor Toso <[email protected]>
Example output has the optional member @dnssearch as string type. It should be an array of String objects instead. Fix it.
For reference, see NetdevUserOptions.
Message-Id: <[email protected]>
--- qapi/net.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/net.json +1 -1
@@ -51,7 +51,7 @@ # # -> { "execute": "netdev_add", # "arguments": { "type": "user", "id": "netdev1", -# "dnssearch": "example.org" } } +# "dnssearch": [ { "str": "example.org" } ] } } # <- { "return": {} } # ##
Signature · 1 line
2.35.1
[PULL 06/10] qapi: fix example of query-colo-status command
In reply to Markus ArmbrusterFrom: Victor Toso <[email protected]>
The example output is missing the mandatory member @last-mode in the return value. Fix it.
Message-Id: <[email protected]>
--- qapi/migration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/migration.json +1 -1
@@ -1679,7 +1679,7 @@ # Example: # # -> { "execute": "query-colo-status" } -# <- { "return": { "mode": "primary", "reason": "request" } } +# <- { "return": { "mode": "primary", "last-mode": "none", "reason": "request" } } # # Since: 3.1 ##
Signature · 1 line
2.35.1
[PULL 04/10] qapi: fix example of query-spice command
In reply to Markus ArmbrusterFrom: Victor Toso <[email protected]>
Example output is missing mandatory members @migrated and @mouse-mode. Fix it.
Message-Id: <[email protected]>
--- qapi/ui.json | 2 ++ 1 file changed, 2 insertions(+)
qapi/ui.json +2 -0
@@ -324,8 +324,10 @@ # "enabled": true, # "auth": "spice", # "port": 5920, +# "migrated":false, # "tls-port": 5921, # "host": "0.0.0.0", +# "mouse-mode":"client", # "channels": [ # { # "port": "54924",
Signature · 1 line
2.35.1
[PULL 09/10] qapi: fix example of query-memdev command
In reply to Markus ArmbrusterFrom: Victor Toso <[email protected]>
Example output is missing mandatory argument @share for the return JSON object. Add it.
Message-Id: <[email protected]>
--- qapi/machine.json | 2 ++ 1 file changed, 2 insertions(+)
qapi/machine.json +2 -0
@@ -839,6 +839,7 @@ # "merge": false, # "dump": true, # "prealloc": false, +# "share": false, # "host-nodes": [0, 1], # "policy": "bind" # },
@@ -847,6 +848,7 @@ # "merge": false, # "dump": true, # "prealloc": true, +# "share": false, # "host-nodes": [2, 3], # "policy": "preferred" # }
Signature · 1 line
2.35.1
I double-checked these patches affect *only* generated documentation. Safe enough for 7.0, I think. But I'm quite content to hold on to them until after the release, if that's preferred.
The following changes since commit 20661b75ea6093f5e59079d00a778a972d6732c5:
Merge tag 'pull-ppc-20220404' of https://github.com/legoater/qemu into staging (2022-04-04 15:48:55 +0100)
are available in the Git repository at:
git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2022-04-05
for you to fetch changes up to 8230f3389c7d7215d0c3946d415f54b3e9c07f73:
qapi: Fix calc-dirty-rate example (2022-04-05 12:30:45 +0200)
----------------------------------------------------------------
QAPI patches patches for 2022-04-05
----------------------------------------------------------------
Markus Armbruster (1):
qapi: Fix calc-dirty-rate example
Victor Toso (9):
qapi: fix example of netdev_add command
qapi: fix examples: replay-break and replay-seek
qapi: fix example of query-named-block-nodes command
qapi: fix example of query-spice command
qapi: fix example of query-vnc command
qapi: fix example of query-colo-status command
qapi: fix example of trace-event-get-state command
qapi: fix example of query-cpus-fast command
qapi: fix example of query-memdev command
qapi/block-core.json | 1 + qapi/machine.json | 4 ++-- qapi/migration.json | 4 ++-- qapi/net.json | 2 +- qapi/replay.json | 4 ++-- qapi/trace.json | 2 +- qapi/ui.json | 3 +++ 7 files changed, 12 insertions(+), 8 deletions(-)
Signature · 1 line
2.35.1
[PULL 08/10] qapi: fix example of query-cpus-fast command
From: Victor Toso <[email protected]>
Example output contains member @arch that was removed in 445a5b4087 "machine: remove 'arch' field from 'query-cpus-fast' QMP command". Fix it.
Message-Id: <[email protected]>
--- qapi/machine.json | 2 -- 1 file changed, 2 deletions(-)
qapi/machine.json +0 -2
@@ -109,7 +109,6 @@ # "socket-id": 0 # }, # "qom-path": "/machine/unattached/device[0]", -# "arch":"x86", # "target":"x86_64", # "cpu-index": 0 # },
@@ -121,7 +120,6 @@ # "socket-id": 1 # }, # "qom-path": "/machine/unattached/device[2]", -# "arch":"x86", # "target":"x86_64", # "cpu-index": 1 # }
Signature · 1 line
2.35.1
[PULL 03/10] qapi: fix example of query-named-block-nodes command
In reply to Markus ArmbrusterFrom: Victor Toso <[email protected]>
Example output is missing mandatory member @detect_zeroes. Fix it.
Message-Id: <[email protected]>
--- qapi/block-core.json | 1 + 1 file changed, 1 insertion(+)
qapi/block-core.json +1 -0
@@ -1776,6 +1776,7 @@ # "file":"disks/test.qcow2", # "node-name": "my-node", # "backing_file_depth":1, +# "detect_zeroes":"off", # "bps":1000000, # "bps_rd":0, # "bps_wr":0,
Signature · 1 line
2.35.1
[PULL 02/10] qapi: fix examples: replay-break and replay-seek
In reply to Markus ArmbrusterFrom: Victor Toso <[email protected]>
Both examples outputs are using @data member for the arguments. This is wrong. The expected member for the QMP is @arguments. Fix it.
Message-Id: <[email protected]>
--- qapi/replay.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
qapi/replay.json +2 -2
@@ -81,7 +81,7 @@ # # Example: # -# -> { "execute": "replay-break", "data": { "icount": 220414 } } +# -> { "execute": "replay-break", "arguments": { "icount": 220414 } } # ## { 'command': 'replay-break', 'data': { 'icount': 'int' } }
@@ -117,6 +117,6 @@ # # Example: # -# -> { "execute": "replay-seek", "data": { "icount": 220414 } } +# -> { "execute": "replay-seek", "arguments": { "icount": 220414 } } ## { 'command': 'replay-seek', 'data': { 'icount': 'int' } }
Signature · 1 line
2.35.1
[PULL 10/10] qapi: Fix calc-dirty-rate example
In reply to Markus ArmbrusterThe example shows {"command": ...}, which is wrong. Fix it to {"execute": ...}.
Message-Id: <[email protected]>
--- qapi/migration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/migration.json +1 -1
@@ -1845,7 +1845,7 @@ # Since: 5.2 # # Example: -# {"command": "calc-dirty-rate", "arguments": {"calc-time": 1, +# {"execute": "calc-dirty-rate", "arguments": {"calc-time": 1, # 'sample-pages': 512} } # ##
Signature · 1 line
2.35.1
[PULL 07/10] qapi: fix example of trace-event-get-state command
In reply to Markus ArmbrusterFrom: Victor Toso <[email protected]>
The example output is missing the mandatory member @vcpu. Fix it.
Message-Id: <[email protected]>
--- qapi/trace.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/trace.json +1 -1
@@ -69,7 +69,7 @@ # # -> { "execute": "trace-event-get-state", # "arguments": { "name": "qemu_memalign" } } -# <- { "return": [ { "name": "qemu_memalign", "state": "disabled" } ] } +# <- { "return": [ { "name": "qemu_memalign", "state": "disabled", "vcpu": false } ] } # ## { 'command': 'trace-event-get-state',
Signature · 1 line
2.35.1
Peter Maydell
AppliedQuoted 13 lines · Markus Armbruster
I double-checked these patches affect *only* generated documentation. Safe enough for 7.0, I think. But I'm quite content to hold on to them until after the release, if that's preferred.
The following changes since commit
20661b75ea6093f5e59079d00a778a972d6732c5:Merge tag 'pull-ppc-20220404' of https://github.com/legoater/qemu into staging (2022-04-04 15:48:55 +0100)
are available in the Git repository at:
git://repo.or.cz/qemu/armbru.gittags/pull-qapi-2022-04-05
Quoted 8 lines
for you to fetch changes up to
8230f3389c7d7215d0c3946d415f54b3e9c07f73:qapi: Fix calc-dirty-rate example (2022-04-05 12:30:45 +0200)
----------------------------------------------------------------
QAPI patches patches for 2022-04-05----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.0
for any user-visible changes.
-- PMM