qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL 00/10] QAPI patches patches for 2022-04-05
@ 2022-04-05 10:34 Markus Armbruster
  2022-04-05 10:34 ` [PULL 01/10] qapi: fix example of netdev_add command Markus Armbruster
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell

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(-)

-- 
2.35.1



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PULL 01/10] qapi: fix example of netdev_add command
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 02/10] qapi: fix examples: replay-break and replay-seek Markus Armbruster
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

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.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220401110712.26911-1-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Commit message tweaked for precision]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/net.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qapi/net.json b/qapi/net.json
index 0d4578bd07..b92f3f5fb4 100644
--- a/qapi/net.json
+++ b/qapi/net.json
@@ -51,7 +51,7 @@
 #
 # -> { "execute": "netdev_add",
 #      "arguments": { "type": "user", "id": "netdev1",
-#                     "dnssearch": "example.org" } }
+#                     "dnssearch": [ { "str": "example.org" } ] } }
 # <- { "return": {} }
 #
 ##
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 02/10] qapi: fix examples: replay-break and replay-seek
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
  2022-04-05 10:34 ` [PULL 01/10] qapi: fix example of netdev_add command Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 03/10] qapi: fix example of query-named-block-nodes command Markus Armbruster
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

Both examples outputs are using @data member for the arguments. This
is wrong. The expected member for the QMP is @arguments. Fix it.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220331190633.121077-3-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/replay.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qapi/replay.json b/qapi/replay.json
index b4d1ba253b..351898f60d 100644
--- a/qapi/replay.json
+++ b/qapi/replay.json
@@ -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' } }
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 03/10] qapi: fix example of query-named-block-nodes command
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
  2022-04-05 10:34 ` [PULL 01/10] qapi: fix example of netdev_add command Markus Armbruster
  2022-04-05 10:34 ` [PULL 02/10] qapi: fix examples: replay-break and replay-seek Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 04/10] qapi: fix example of query-spice command Markus Armbruster
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

Example output is missing mandatory member @detect_zeroes. Fix it.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220331190633.121077-4-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/block-core.json | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qapi/block-core.json b/qapi/block-core.json
index 4a7a6940a3..beeb91952a 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -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,
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 04/10] qapi: fix example of query-spice command
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
                   ` (2 preceding siblings ...)
  2022-04-05 10:34 ` [PULL 03/10] qapi: fix example of query-named-block-nodes command Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 05/10] qapi: fix example of query-vnc command Markus Armbruster
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

Example output is missing mandatory members @migrated and @mouse-mode.
Fix it.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220331190633.121077-5-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/ui.json | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/qapi/ui.json b/qapi/ui.json
index a810ed680c..c039b8b3cb 100644
--- a/qapi/ui.json
+++ b/qapi/ui.json
@@ -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",
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 05/10] qapi: fix example of query-vnc command
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
                   ` (3 preceding siblings ...)
  2022-04-05 10:34 ` [PULL 04/10] qapi: fix example of query-spice command Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 06/10] qapi: fix example of query-colo-status command Markus Armbruster
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

The return value is missing the mandatory member @websocket. Fix it.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220331190633.121077-6-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/ui.json | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qapi/ui.json b/qapi/ui.json
index c039b8b3cb..13a8bb82aa 100644
--- a/qapi/ui.json
+++ b/qapi/ui.json
@@ -658,6 +658,7 @@
 #                "host":"127.0.0.1",
 #                "service":"50401",
 #                "family":"ipv4"
+#                "websocket":false,
 #             }
 #          ]
 #       }
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 06/10] qapi: fix example of query-colo-status command
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
                   ` (4 preceding siblings ...)
  2022-04-05 10:34 ` [PULL 05/10] qapi: fix example of query-vnc command Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 07/10] qapi: fix example of trace-event-get-state command Markus Armbruster
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

The example output is missing the mandatory member @last-mode in the
return value. Fix it.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220331190633.121077-7-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/migration.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qapi/migration.json b/qapi/migration.json
index 092a63354b..f74777608a 100644
--- a/qapi/migration.json
+++ b/qapi/migration.json
@@ -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
 ##
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 07/10] qapi: fix example of trace-event-get-state command
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
                   ` (5 preceding siblings ...)
  2022-04-05 10:34 ` [PULL 06/10] qapi: fix example of query-colo-status command Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 08/10] qapi: fix example of query-cpus-fast command Markus Armbruster
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

The example output is missing the mandatory member @vcpu. Fix it.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220331190633.121077-8-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/trace.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qapi/trace.json b/qapi/trace.json
index 119509f565..6c6982a587 100644
--- a/qapi/trace.json
+++ b/qapi/trace.json
@@ -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',
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 08/10] qapi: fix example of query-cpus-fast command
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
                   ` (6 preceding siblings ...)
  2022-04-05 10:34 ` [PULL 07/10] qapi: fix example of trace-event-get-state command Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 09/10] qapi: fix example of query-memdev command Markus Armbruster
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

Example output contains member @arch that was removed in 445a5b4087
"machine: remove 'arch' field from 'query-cpus-fast' QMP command". Fix
it.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220331190633.121077-9-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/machine.json | 2 --
 1 file changed, 2 deletions(-)

diff --git a/qapi/machine.json b/qapi/machine.json
index 9c460ec450..968f912989 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -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
 #         }
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 09/10] qapi: fix example of query-memdev command
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
                   ` (7 preceding siblings ...)
  2022-04-05 10:34 ` [PULL 08/10] qapi: fix example of query-cpus-fast command Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 10:34 ` [PULL 10/10] qapi: Fix calc-dirty-rate example Markus Armbruster
  2022-04-05 15:14 ` [PULL 00/10] QAPI patches patches for 2022-04-05 Peter Maydell
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

From: Victor Toso <victortoso@redhat.com>

Example output is missing mandatory argument @share for the return
JSON object. Add it.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220331190633.121077-10-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qapi/machine.json | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/qapi/machine.json b/qapi/machine.json
index 968f912989..d25a481ce4 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -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"
 #        }
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PULL 10/10] qapi: Fix calc-dirty-rate example
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
                   ` (8 preceding siblings ...)
  2022-04-05 10:34 ` [PULL 09/10] qapi: fix example of query-memdev command Markus Armbruster
@ 2022-04-05 10:34 ` Markus Armbruster
  2022-04-05 15:14 ` [PULL 00/10] QAPI patches patches for 2022-04-05 Peter Maydell
  10 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2022-04-05 10:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Victor Toso

The example shows {"command": ...}, which is wrong.  Fix it to
{"execute": ...}.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220401082028.3583296-1-armbru@redhat.com>
Reviewed-by: Victor Toso <victortoso@redhat.com>
---
 qapi/migration.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qapi/migration.json b/qapi/migration.json
index f74777608a..27d7b28158 100644
--- a/qapi/migration.json
+++ b/qapi/migration.json
@@ -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} }
 #
 ##
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PULL 00/10] QAPI patches patches for 2022-04-05
  2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
                   ` (9 preceding siblings ...)
  2022-04-05 10:34 ` [PULL 10/10] qapi: Fix calc-dirty-rate example Markus Armbruster
@ 2022-04-05 15:14 ` Peter Maydell
  10 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2022-04-05 15:14 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: qemu-devel

On Tue, 5 Apr 2022 at 11:35, Markus Armbruster <armbru@redhat.com> wrote:
>
> 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
>
> ----------------------------------------------------------------



Applied, thanks.

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

-- PMM


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-04-05 15:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-05 10:34 [PULL 00/10] QAPI patches patches for 2022-04-05 Markus Armbruster
2022-04-05 10:34 ` [PULL 01/10] qapi: fix example of netdev_add command Markus Armbruster
2022-04-05 10:34 ` [PULL 02/10] qapi: fix examples: replay-break and replay-seek Markus Armbruster
2022-04-05 10:34 ` [PULL 03/10] qapi: fix example of query-named-block-nodes command Markus Armbruster
2022-04-05 10:34 ` [PULL 04/10] qapi: fix example of query-spice command Markus Armbruster
2022-04-05 10:34 ` [PULL 05/10] qapi: fix example of query-vnc command Markus Armbruster
2022-04-05 10:34 ` [PULL 06/10] qapi: fix example of query-colo-status command Markus Armbruster
2022-04-05 10:34 ` [PULL 07/10] qapi: fix example of trace-event-get-state command Markus Armbruster
2022-04-05 10:34 ` [PULL 08/10] qapi: fix example of query-cpus-fast command Markus Armbruster
2022-04-05 10:34 ` [PULL 09/10] qapi: fix example of query-memdev command Markus Armbruster
2022-04-05 10:34 ` [PULL 10/10] qapi: Fix calc-dirty-rate example Markus Armbruster
2022-04-05 15:14 ` [PULL 00/10] QAPI patches patches for 2022-04-05 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).