qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Clean up TSAN warnings
@ 2025-12-13  0:12 Marc Morcos
  2025-12-13  0:12 ` [PATCH 1/4] apic: Resize APICBASE Marc Morcos
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Marc Morcos @ 2025-12-13  0:12 UTC (permalink / raw)
  To: maintainer_email_from_script; +Cc: cc_list_from_script, qemu-devel, Marc Morcos

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(-)

-- 
2.52.0.239.gd5f0c6e74e-goog



^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 0/4] Clean up TSAN warnings
@ 2025-12-13  0:14 Marc Morcos
  2025-12-13  0:14 ` [PATCH 2/4] thread-pool: Fix thread race Marc Morcos
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Morcos @ 2025-12-13  0:14 UTC (permalink / raw)
  To: Paolo Bonzini, Richard Henderson, Eduardo Habkost,
	Dr . David Alan Gilbert
  Cc: Michael S . Tsirkin, Marcel Apfelbaum, Markus Armbruster,
	Marcelo Tosatti, qemu-devel, kvm, Marc Morcos

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(-)

-- 
2.52.0.239.gd5f0c6e74e-goog



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-12-15 17:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-13  0:12 [PATCH 0/4] Clean up TSAN warnings Marc Morcos
2025-12-13  0:12 ` [PATCH 1/4] apic: Resize APICBASE Marc Morcos
2025-12-13  0:12 ` [PATCH 2/4] thread-pool: Fix thread race Marc Morcos
2025-12-13  0:12 ` [PATCH 3/4] qmp: " Marc Morcos
2025-12-13  0:12 ` [PATCH 4/4] apic: Make apicbase accesses atomic to fix data race Marc Morcos
  -- strict thread matches above, loose matches on Subject: below --
2025-12-13  0:14 [PATCH 0/4] Clean up TSAN warnings Marc Morcos
2025-12-13  0:14 ` [PATCH 2/4] thread-pool: Fix thread race Marc Morcos
2025-12-15 14:43   ` Paolo Bonzini
2025-12-15 17:51     ` Marc Morcos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).