]> Git Repo - qemu.git/commit
qmp: Move dispatcher to a coroutine
authorKevin Wolf <[email protected]>
Mon, 5 Oct 2020 15:58:50 +0000 (17:58 +0200)
committerMarkus Armbruster <[email protected]>
Fri, 9 Oct 2020 05:08:20 +0000 (07:08 +0200)
commit9ce44e2ce267caf5559904a201aa1986b0a8326b
tree7435b0a31a7b52eedfaa544c39d13e186b4175b9
parent04f22362f14b028c2632ce01e74e6a78c2b45e89
qmp: Move dispatcher to a coroutine

This moves the QMP dispatcher to a coroutine and runs all QMP command
handlers that declare 'coroutine': true in coroutine context so they
can avoid blocking the main loop while doing I/O or waiting for other
events.

For commands that are not declared safe to run in a coroutine, the
dispatcher drops out of coroutine context by calling the QMP command
handler from a bottom half.

Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Message-Id: <20201005155855[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
include/qapi/qmp/dispatch.h
monitor/monitor-internal.h
monitor/monitor.c
monitor/qmp.c
qapi/qmp-dispatch.c
qapi/qmp-registry.c
util/aio-posix.c
This page took 0.031408 seconds and 4 git commands to generate.