diff options
author | Alex Bennée | 2022-10-27 20:36:34 +0200 |
---|---|---|
committer | Alex Bennée | 2022-10-31 21:37:59 +0100 |
commit | 14fd492b89b512735ac3abf8f5300db865129378 (patch) | |
tree | 55b3587dff5b80d907b207c56ca8309d57ab9b54 /hw/misc/macio/cuda.c | |
parent | contrib/plugins: enable debug on CONFIG_DEBUG_TCG (diff) | |
download | qemu-14fd492b89b512735ac3abf8f5300db865129378.tar.gz qemu-14fd492b89b512735ac3abf8f5300db865129378.tar.xz qemu-14fd492b89b512735ac3abf8f5300db865129378.zip |
contrib/plugins: protect execlog's last_exec expansion
We originally naively treated expansion as safe because we expected
each new CPU/thread to appear in order. However the -M raspi2 model
triggered a case where a new high cpu_index thread started executing
just before a smaller one.
Clean this up by converting the GArray into the simpler GPtrArray and
then holding a lock for the expansion.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Alexandre Iooss <erdnaxe@crans.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221027183637.2772968-29-alex.bennee@linaro.org>
Diffstat (limited to 'hw/misc/macio/cuda.c')
0 files changed, 0 insertions, 0 deletions