Skip to content

Documentation for coroutine annotations

Charlie Shepherd qemu-devel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v32 patches 2 repliesSuperseded
  3. v2 RFC15 patches 13 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches23 repliesSuperseded

Changes in v4 from the cover letter

- Added missing sign-off.

- Added patches by Gabriel Kerneis to add blocking_fn annotation and to protect coroutine_fn and blocking_fn with #ifndef.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Add an explanation of when a function should be marked coroutine_fninclude/block/coroutine.h+8 -00 replies
2/4Rename qemu_coroutine_self to qemu_coroutine_self_int and add an annotated wrappercoroutine-gthread.c coroutine-sigaltstack.c coroutine-ucontext.c +3 more+19 -50 replies
3/4Introduce blocking_fn annotationinclude/block/coroutine.h+23 -00 replies
4/4Protect coroutine_fn and blocking_fn with #ifndefinclude/block/coroutine.h+4 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/4] Documentation for coroutine annotations

These patches were the first two from my GSoC series and were reasonably straight-forward and well accepted. Gabriel and I are hoping the patches from GSoC can be merged before I start my job in December, so I'm starting by sending the simple parts of the overall patchset, when they are merged then I will redo the later parts in several smaller and more manageable patchsets.

---

Changes since v3:

- Added missing sign-off.

- Added patches by Gabriel Kerneis to add blocking_fn annotation and to protect coroutine_fn and blocking_fn with #ifndef.

Charlie Shepherd (2):
Add an explanation of when a function should be marked coroutine_fn Rename qemu_coroutine_self to qemu_coroutine_self_int and add an
annotated wrapper

Gabriel Kerneis (2):
Introduce blocking_fn annotation
Protect coroutine_fn and blocking_fn with #ifndef

 coroutine-gthread.c           |  2 +-
 coroutine-sigaltstack.c       |  2 +-
 coroutine-ucontext.c          |  2 +-
 coroutine-win32.c             |  2 +-
 include/block/coroutine.h     | 35 +++++++++++++++++++++++++++++++++++
 include/block/coroutine_int.h |  1 +
 qemu-coroutine.c              | 15 ++++++++++++++-
 7 files changed, 54 insertions(+), 5 deletions(-)
Signature · 1 line
1.8.4.rc3