]> git.proxmox.com Git - mirror_qemu.git/commit - docs/devel/qapi-code-gen.rst
qapi: Add a 'coroutine' flag for commands
authorKevin Wolf <kwolf@redhat.com>
Mon, 5 Oct 2020 15:58:49 +0000 (17:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Oct 2020 05:08:19 +0000 (07:08 +0200)
commit04f22362f14b028c2632ce01e74e6a78c2b45e89
treedfc8561919b16e964941a69b3ea631235b6c3e68
parente69ee454b5f9dff3af48bcfc3d9691b3edb02fe2
qapi: Add a 'coroutine' flag for commands

This patch adds a new 'coroutine' flag to QMP command definitions that
tells the QMP dispatcher that the command handler is safe to be run in a
coroutine.

The documentation of the new flag pretends that this flag is already
used as intended, which it isn't yet after this patch. We'll implement
this in another patch in this series.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20201005155855.256490-9-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
15 files changed:
docs/devel/qapi-code-gen.txt
docs/sphinx/qapidoc.py
include/qapi/qmp/dispatch.h
scripts/qapi/commands.py
scripts/qapi/expr.py
scripts/qapi/introspect.py
scripts/qapi/schema.py
tests/qapi-schema/meson.build
tests/qapi-schema/oob-coroutine.err [new file with mode: 0644]
tests/qapi-schema/oob-coroutine.json [new file with mode: 0644]
tests/qapi-schema/oob-coroutine.out [new file with mode: 0644]
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out
tests/qapi-schema/test-qapi.py
tests/test-qmp-cmds.c