Skip to content

coroutine: dataplane support

Stefan Hajnoczi qemu-devel 1 version Applied

Status from this message: Applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2coroutine: protect global pool with a mutexqemu-coroutine.c+18 -20 replies
2/2coroutine: stop using AioContext in CoQueueinclude/block/coroutine_int.h qemu-coroutine-lock.c qemu-coroutine.c +1 more+29 -360 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKevin Wolf
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] coroutine: dataplane support

There is ongoing work to enable multiple event loop threads. This will allow QEMU itself to take advantage of SMP and reduce Big QEMU Lock (BQL) contention. This series is one step in that effort.

These patches make coroutines safe in a multi-event loop/multi-threaded world. I have successfully tested them running qcow2 in a dataplane thread (further patches are required which I'll be sending soon).

Patch 1 protects the global coroutine freelist with a lock :).

Patch 2 drops the CoQueue dependency on AioContext. This allows CoMutex and CoRwlock to operate in a dataplane thread whereas previously we always scheduled coroutines in the QEMU iothread.

Stefan Hajnoczi (2):
coroutine: protect global pool with a mutex
coroutine: stop using AioContext in CoQueue

 include/block/coroutine_int.h |  4 ++++
 qemu-coroutine-lock.c         | 56 ++++++++++++++++---------------------------
 qemu-coroutine.c              | 23 ++++++++++++++++--
 trace-events                  |  2 +-
 4 files changed, 47 insertions(+), 38 deletions(-)
Signature · 1 line
1.8.1.4