[PATCH v2 0/3] console: make QMP screendump use coroutine

marcandre.lureau@redhat.com posted 3 patches 3 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20201027133602.3038018-1-marcandre.lureau@redhat.com
hmp-commands.hx            |  1 +
monitor/hmp-cmds.c         |  3 ++-
qapi/ui.json               |  3 ++-
ui/console.c               | 47 ++++++++++++++++++++++++++++++--------
ui/trace-events            |  2 +-
util/qemu-coroutine-lock.c |  6 ++---
6 files changed, 45 insertions(+), 17 deletions(-)
[PATCH v2 0/3] console: make QMP screendump use coroutine
Posted by marcandre.lureau@redhat.com 3 years, 6 months ago
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

Thanks to recent work by Kevin, it becomes possible to run HMP/QMP commands i=
n a
coroutine. The screendump command is a good target, as it requires to re-enter
the main-loop in ordre to flush the display, and write to file. Ideally, IO
would be done with a non-blocking fd, however it's not currently enabled. This
is left for a future work.

v2:
 - change summary to not falsly claim non-blocking write support
 - code styles fixes
 - rebased, add reviewed-by tags

Marc-Andr=C3=A9 Lureau (3):
  coroutine: let CoQueue wake up outside a coroutine
  console: modify ppm_save to take a pixman image ref
  console: make QMP/HMP screendump run in coroutine

 hmp-commands.hx            |  1 +
 monitor/hmp-cmds.c         |  3 ++-
 qapi/ui.json               |  3 ++-
 ui/console.c               | 47 ++++++++++++++++++++++++++++++--------
 ui/trace-events            |  2 +-
 util/qemu-coroutine-lock.c |  6 ++---
 6 files changed, 45 insertions(+), 17 deletions(-)

--=20
2.29.0