From: Rusty Russell Subject: Re: [Xen-devel] [patch 17/44] Add nosegneg capability to the vsyscall page notes Date: Tue, 17 Jul 2007 10:45:55 +1000 Message-ID: <1184633155.5955.29.camel@localhost.localdomain> References: <20070716231536.937393000@xensource.com> > <20070716232914.029797000@xensource.com>> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070716232914.029797000@xensource.com>> Sender: linux-kernel-owner@vger.kernel.org To: Jeremy Fitzhardinge Cc: Linus Torvalds , Zachary Amsden , Jeremy Fitzhardinge , Xen-devel , Andi Kleen , lkml , Chris Wright , Ian Pratt , Andrew Morton , Ulrich Drepper , Roland McGrath , Christian Limpach List-Id: xen-devel@lists.xenproject.org On Mon, 2007-07-16 at 16:15 -0700, Jeremy Fitzhardinge wrote: > plain text document attachment (xen-vsyscall-note.patch) > Add the "nosegneg" fake capabilty to the vsyscall page notes. This is > used by the runtime linker to select a glibc version which then > disables negative-offset accesses to the thread-local segment via > %gs. These accesses require emulation in Xen (because segments are > truncated to protect the hypervisor address space) and avoiding them > provides a measurable performance boost. Hmm, this is still unconditional? Not that it causes any measurable slowdown when enabled, but ISTR discussing making this dynamic... Rusty.