Skip to content

Clean up TSAN warnings

Marc Morcos qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4apic: Resize APICBASEhw/intc/apic_common.c include/hw/i386/apic_internal.h+3 -30 replies
2/4thread-pool: Fix thread raceutil/thread-pool.c+16 -140 replies
3/4qmp: Fix thread racemonitor/monitor.c monitor/qmp.c+14 -30 replies
4/4apic: Make apicbase accesses atomic to fix data racehw/i386/kvm/apic.c hw/intc/apic_common.c+20 -120 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] Clean up TSAN warnings

When running several tests with tsan, thread races were detected when reading certain variables. This should allieviate the problem. Additionally, the apicbase member of APICCommonState has been updated to 64 bit to reflect its 36 bit contents.

Marc Morcos (4):
apic: Resize APICBASE
thread-pool: Fix thread race
qmp: Fix thread race
apic: Make apicbase accesses atomic to fix data race

 hw/i386/kvm/apic.c              | 12 ++++++++----
 hw/intc/apic_common.c           | 24 ++++++++++++++----------
 include/hw/i386/apic_internal.h |  2 +-
 monitor/monitor.c               | 11 ++++++++++-
 monitor/qmp.c                   |  6 ++++--
 util/thread-pool.c              | 30 ++++++++++++++++--------------
 6 files changed, 53 insertions(+), 32 deletions(-)
Signature · 1 line
2.52.0.239.gd5f0c6e74e-goog