Skip to content

Add timeout mechanism to qmp actions

Zhenyu Ye qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2util: introduce aio_context_acquire_timeoutinclude/block/aio.h include/qemu/thread-posix.h include/qemu/thread.h +2 more+23 -00 replies
2/2qmp: use aio_context_acquire_timeout replace aio_context_acquireblock/qapi-sysemu.c block/qapi.c blockdev.c +1 more+42 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] Add timeout mechanism to qmp actions

Before doing qmp actions, we need to lock the qemu_global_mutex, so the qmp actions should not take too long time.

Unfortunately, some qmp actions need to acquire aio context and this may take a long time. The vm will soft lockup if this time is too long.

So add a timeout mechanism while doing qmp actions.

Zhenyu Ye (2):
util: introduce aio_context_acquire_timeout
qmp: use aio_context_acquire_timeout replace aio_context_acquire

 block/qapi-sysemu.c         |  7 ++++++-
 block/qapi.c                |  6 +++++-
 blockdev.c                  | 35 ++++++++++++++++++++++++++++++-----
 include/block/aio.h         |  6 ++++++
 include/qemu/thread-posix.h |  1 +
 include/qemu/thread.h       |  1 +
 util/async.c                | 10 ++++++++++
 util/qemu-thread-posix.c    |  6 ++++++
 8 files changed, 65 insertions(+), 7 deletions(-)
Signature · 1 line
2.22.0.windows.1