Skip to content

plugins/execlog: fix segfault and flush output on vcpu exit

Harry van Haaren qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 11 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2plugins/execlog: fix segfault/race-cond on per-vCPU structurescontrib/plugins/execlog.c+25 -405 replies
1/2plugins/execlog: fix segfault/race-cond on per-vCPU structurescontrib/plugins/execlog.c+23 -450 replies
2/2plugins/execlog: fix execlog vcpu_exit execution print losscontrib/plugins/execlog.c+25 -13 replies
2/2plugins/execlog: fix execlog vcpu_exit execution print losscontrib/plugins/execlog.c+20 -00 replies

Reviews trailers per patch

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

PatchPierrick Bouvier
SeriesR-b T-b
1/2
1/2
2/2
2/2

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

Read the v2 thread

Cover letter [PATCH v2 0/2] plugins/execlog: fix segfault and flush output on vcpu exit

From: Harry van Haaren <[email protected]>

Hi Qemu-Dev & CCs,

This is my first contribution to QEMU itself, but I have worked on DPDK, OVS, and QEMU-RS a bit in the past. I have experience with mailing lists for patches and some QEMU internals.

This is a "git publish" reply to the original patches that weren't in a patchset:
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/

Thanks for reviews and input, the v2 reworks as follows:
- I expect email to no longer have "| OPENCHIP" in my name, and the email footer removed
- git publish used to send, with "--number 2" to hopefully get a v2 patchset out
- rebased to latest branch, atexit() function signatures changed
- avoid adding mutex for output, rely on QEMUs logging mutex (thanks Pierrick) --- use single call to log to avoid line-breaks corrupting output

Please note that LLMs were used to investigate and fix this bug, but all code in this patch has been reviewed by me, and I believe it to be a good solution.

Regards, -Harry

Harry van Haaren (2):
plugins/execlog: fix segfault/race-cond on per-vCPU structures plugins/execlog: fix execlog vcpu_exit execution print loss

 contrib/plugins/execlog.c | 88 +++++++++++++++++++--------------------
 1 file changed, 43 insertions(+), 45 deletions(-)
Signature · 1 line
2.54.0