Skip to content

Make coroutine annotations ready for static analysis

Paolo Bonzini qemu-devel 1 version Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 1 replyApplied

Patches in v1 Applied

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] Make coroutine annotations ready for static analysis

Clang has a generic __annotate__ attribute that can be used by static analyzers to understand properties of functions and analyze the control flow.

Unlike TSA annotations, the __annotate__ attribute applies to function pointers as well, which is very fortunate because many BlockDriver function driver run in coroutines.

Paolo

v1->v2: improved comments for patch 2

Alberto Faria (2):
block: Add no_coroutine_fn and coroutine_mixed_fn marker
coroutine: annotate coroutine_fn for libclang

 include/block/block-common.h | 11 +++++----
 include/qemu/coroutine.h     | 43 ++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 4 deletions(-)
Signature · 1 line
2.38.1