All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: glibc patch for TLS?
@ 2005-04-24  9:07 Ian Pratt
  2005-04-25 16:47 ` Michael Long
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Pratt @ 2005-04-24  9:07 UTC (permalink / raw)
  To: Michael Long, Nils Toedtmann; +Cc: xen-devel

 

> I pulled out the glibc-xen-tls.patch file and applied it to 
> Gentoo's glibc-2.3.5.  It compiled and installed, but when I 
> reboot into Xen, I still get the emulation warning.  Should 
> it autodetect that the patch is there, or is there something 
> I need to do to disable the check in Xen in order to test the patch?

Did you remember to build glibc with "-mno-tls-direct-seg-refs" ?

Ian

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: glibc patch for TLS?
@ 2005-04-25 20:57 Ian Pratt
  2005-04-25 23:51 ` Michael Long
  2005-04-26  7:28 ` Nils Toedtmann
  0 siblings, 2 replies; 11+ messages in thread
From: Ian Pratt @ 2005-04-25 20:57 UTC (permalink / raw)
  To: Michael Long; +Cc: Nils Toedtmann, xen-devel

 

> Nope, that's what I forgot.  I recompiled the patched glibc 
> with that flag and everything seems to be working fine.  I 
> can post the ebuild if people are interested.  It's pretty 
> straightforward, just adding the patch and making for the 
> CFLAGS get set properly.
> 
> I'm now compiling all my packages with 
> -mno-tls-direct-seg-refs.  Is this necessary/recommended?  I 
> know some ebuild strip out CFLAGS it's unsure of, so if it's 
> necessary other packages may need to be modified.

Glibc really hammers the thread local storage stuff and hence
experiences rather more of a slow down rather than any applications
we've come across, but it would obviously be preferable to recompile
anything that uses tls.

One of the hard things is figuring out which applications actually make
use of the thread local attribute, and hence would actually benefit from
recompiling.

I guess we could modify the warning message to print out the name of the
process that did the -ve segment access...

Ian

^ permalink raw reply	[flat|nested] 11+ messages in thread
* glibc patch for TLS?
@ 2005-04-21  5:28 Michael Long
  2005-04-21 11:31 ` Nils Toedtmann
  0 siblings, 1 reply; 11+ messages in thread
From: Michael Long @ 2005-04-21  5:28 UTC (permalink / raw)
  To: xen-devel

Hi,

I've been experimenting with Xen on a Gentoo Linux box, and I've run
into the problem that some binaries cause the Xen to generate a TLS
warning and go into compatibility mode, even though I've moved
/lib/tls to /lib/tls.disabled.  I figure I have some static binary
causing it, though I am not sure what.  I saw someone mention that
there was a patch for glibc to allow Xen to run with TLS libraries,
and I'd like to try it out, but I can't seem to find it anywhere.  Is
it available for public testing?  Thanks.

  -Michael

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

end of thread, other threads:[~2005-04-26 14:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-24  9:07 glibc patch for TLS? Ian Pratt
2005-04-25 16:47 ` Michael Long
2005-04-26  2:01   ` Edward Middleton
  -- strict thread matches above, loose matches on Subject: below --
2005-04-25 20:57 Ian Pratt
2005-04-25 23:51 ` Michael Long
2005-04-26 11:32   ` Måns Rullgård
2005-04-26  7:28 ` Nils Toedtmann
2005-04-26 14:53   ` Michael Long
2005-04-21  5:28 Michael Long
2005-04-21 11:31 ` Nils Toedtmann
2005-04-24  3:33   ` Michael Long

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.