WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Debian Sid amd64 libc6-xen

To: "Konstantinos Pachopoulos" <kostaspaxos@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] Debian Sid amd64 libc6-xen
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Thu, 31 Aug 2006 13:09:33 +0200
Delivery-date: Thu, 31 Aug 2006 04:10:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060831105831.23701.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbM7IP2DhBg9uNARUCH/jOzEDBWZwAAFdig
Thread-topic: [Xen-users] Debian Sid amd64 libc6-xen
> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Konstantinos Pachopoulos
> Sent: 31 August 2006 11:59
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] Debian Sid amd64 libc6-xen
> 
> Hi,
> libc6-xen exists only for i386 Sid, not for amd64. Is
> this not necessary for the system- hypervisor?

64-bit doesn't need special treatment to deal with libc, since it's not
using the same method as i386 for protecting the Xen kernel memory from
Linux, and thus it's fine to use negative segment offsets to access
thread-local storage without having any penalty.

In 32-bit, segment limis are used to prevent the Linux kernel from
accidentally (or indeed intentionally) overwriting the hypervisor. Since
there are quite a few processors available that doesn't support segment
limits in 64-bit (only recent AMD processors DO support this, AFAIK),
it's not usable to prevent such overwriting, and thus another method is
used [I think it involves using multiple page-tables, but I've not
looked at it]. 

And why is segment limits and negative segment offsets incompatible?
Well, it causes problems because the negative offset is actually just a
big unsigned number that happens to overflow when it's added to the base
from the segment. But with a limit that isn't 4GB, the overflow
calculation doesn't work right (as in, it traps and the fault handler
gets to work out what actually was meant to happen - which is MUCH
slower...). 

--
Mats
> 
> Thanks
> 
> 
>               
> ___________________________________________________________ 
> Try the all-new Yahoo! Mail. "The New Version is radically 
> easier to use" - The Wall Street Journal 
> http://uk.docs.yahoo.com/nowyoucan.html
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 
> 



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

<Prev in Thread] Current Thread [Next in Thread>