From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932847AbXGQBGj (ORCPT ); Mon, 16 Jul 2007 21:06:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932603AbXGQBFz (ORCPT ); Mon, 16 Jul 2007 21:05:55 -0400 Received: from gw.goop.org ([64.81.55.164]:33006 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932559AbXGQBFx (ORCPT ); Mon, 16 Jul 2007 21:05:53 -0400 Message-ID: <469C15B6.8070002@goop.org> Date: Mon, 16 Jul 2007 18:04:54 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: Rusty Russell CC: Jeremy Fitzhardinge , Linus Torvalds , Zachary Amsden , Xen-devel , Andi Kleen , lkml , Chris Wright , Ian Pratt , Andrew Morton , Ulrich Drepper , Roland McGrath , Christian Limpach Subject: Re: [Xen-devel] [patch 17/44] Add nosegneg capability to the vsyscall page notes References: <20070716231536.937393000@xensource.com> > <20070716232914.029797000@xensource.com>> <1184633155.5955.29.camel@localhost.localdomain> In-Reply-To: <1184633155.5955.29.camel@localhost.localdomain> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Rusty Russell wrote: > 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... Played with it for a bit, but it's fairly fiddly. Didn't seem like it was worth the complexity. J