Add timeout mechanism to qmp actions
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 25 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | util: introduce aio_context_acquire_timeoutinclude/ include/ include/ +2 more | +23 | 0 replies | |
| 2/2 | qmp: use aio_context_acquire_timeout replace aio_context_acquireblock/ block/ blockdev.c +1 more | +42 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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