qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Your clang TSA patches
@ 2023-05-08 14:53 Stefan Hajnoczi
  2023-05-09  7:00 ` Marc-André Lureau
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2023-05-08 14:53 UTC (permalink / raw)
  To: Marc-André Lureau; +Cc: qemu-devel, Kevin Wolf

Hi Marc-André,
clang's Thread Safety Analysis is being used more in the QEMU block
layer and a few limitations have been hit:
1. Mutexes that are struct fields are not supported (only global mutexes work).
2. Analysis does not extend across function pointers. See
GRAPH_RDLOCK_PTR for a workaround that is currently used.

(There was a third limitation that I don't remember. Maybe Kevin remembers.)

I heard you had clang or LLVM patches in that past that improve TSA.
Did your patches address these things? Any idea how hard it is to fix
these limitations?

Thanks,
Stefan


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

end of thread, other threads:[~2023-05-09 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-08 14:53 Your clang TSA patches Stefan Hajnoczi
2023-05-09  7:00 ` Marc-André Lureau
2023-05-09  8:45   ` Kevin Wolf
2023-05-09 10:54   ` Stefan Hajnoczi

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