[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Re: Xen and TLS, -mno-tls-direct-seg-refs needed?


  • To: "Sven Köhler" <skoehler@xxxxxx>
  • From: "Molle Bestefich" <molle.bestefich@xxxxxxxxx>
  • Date: Sat, 12 Aug 2006 10:21:07 +0200
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 12 Aug 2006 01:21:50 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OMg472RLubR7TVlQv5hWPVYFhXtHAbjTK7KdCYP1zj1gIpLzcipbexMHXp8au2LEd3G/HBvAL2+ewQGoA/x4Qik3yoUzOcmHbdF4x471ZIlhHgiEUr9J0oMVsyZRHjCvnFPNXxAak9UAZfPu1I+S3dfi4hrCSxwrOwHbogXKP1Y=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Sven Köhler wrote:
If i have a multilib x86_64 system (that means: 64-bit glibc and
32-bit glibc are present), then the 32-bit does still needs this
-mno-tls-direct-seg-refs neede - or does it not?

I honestly have NO idea.

I would imagine that it works like this:

Since the CPU is running in 64-bit mode by virtue of you running a
64-bit OS, any 32-bit code is executed in a fashion where the
operating system has first told the CPU to set up a virtual 4GB 32-bit
environment.  Any kernel calls from 32-bit code goes into a
translation layer the kernel has, and the translation layer knows how
to switch the CPU to 64-bit mode to actually perform the kernel call
onto the 64-bit kernel.  Xen would live entirely outside of the 4 GB
virtual 32-bit area, being used only from the 64-bit kernel, and being
protected by whatever mechanism it is that Xen normally uses on
x86_64.

But I'm just imagining these things, I haven't actually read a thing
about CPUs since the switch from 80286 to 80386.  Hope someone who
actually knows comes along :-).

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.