qemu-e2k/monitor
Kevin Wolf bb4b9ead95 hmp: Add support for coroutine command handlers
Often, QMP command handlers are not only called to handle QMP commands,
but also from a corresponding HMP command handler. In order to give them
a consistent environment, optionally run HMP command handlers in a
coroutine, too.

The implementation is a lot simpler than in QMP because for HMP, we
still block the VM while the coroutine is running.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20201005155855.256490-11-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>
2020-10-09 07:08:20 +02:00
..
hmp-cmds.c
hmp.c hmp: Add support for coroutine command handlers 2020-10-09 07:08:20 +02:00
meson.build
misc.c hmp: Update current monitor only in handle_hmp_command() 2020-10-09 07:08:19 +02:00
monitor-internal.h hmp: Add support for coroutine command handlers 2020-10-09 07:08:20 +02:00
monitor.c qmp: Move dispatcher to a coroutine 2020-10-09 07:08:20 +02:00
qmp-cmds-control.c
qmp-cmds.c
qmp.c qmp: Move dispatcher to a coroutine 2020-10-09 07:08:20 +02:00
trace-events
trace.h