On Tue, Jan 13, 2026 at 04:49:53PM +0100, Paolo Bonzini wrote: > On Tue, Jan 13, 2026 at 2:00 PM Markus Armbruster <[email protected]> wrote: > > > > Tempted to store the thread name in TLS and call it a day. > > > > > > Using the official APIs in this way ensures that the thread name is > > > visible outside QEMU. For example when debugging in GDB, which IMHO > > > is an important benefit. > > > > I didn't mean to suggest not to set the "official" thread name. > > > > This patch retrieves the "official" thread name back. Takes a bit of > > system-specific code, including Meson magic. We could instead hold on > > to our own copy, and just use that. > > Yes, I think that's what we're going to do anyway due to my remark on > patch 7/24.
That doesn't alter things. The constructor merely initialzies the name for the main thread. We'll still use pthread APIs for all other threads. With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
