Received: from eggs.gnu.org ([2001:4830:134:3::10]:54615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG800-0000qv-Uk for qemu-devel@nongnu.org; Fri, 17 Jul 2015 11:56:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG7zz-0000sM-Pm for qemu-devel@nongnu.org; Fri, 17 Jul 2015 11:56:32 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:35551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG7zz-0000sD-KX for qemu-devel@nongnu.org; Fri, 17 Jul 2015 11:56:31 -0400 Date: Fri, 17 Jul 2015 17:56:26 +0200 From: Aurelien Jarno Message-ID: <20150717155625.GK11361@aurel32.net> References: <1437081950-7206-1-git-send-email-rth@twiddle.net> <1437081950-7206-3-git-send-email-rth@twiddle.net> <55A91F87.6030300@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55A91F87.6030300@redhat.com> Subject: Re: [Qemu-devel] [PATCH 2/2] tcg/i386: Reserve register for guest_base if a segment isn't available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Leon Alrae , QEMU Developers , Richard Henderson On 2015-07-17 17:30, Paolo Bonzini wrote: > > > On 17/07/2015 03:33, Peter Maydell wrote: > > On 16 July 2015 at 22:25, Richard Henderson wrote: > > > This saves 2 insns and 10 bytes from the implementation of > > > each memory operation. > > > > Do we have an idea of which platforms/configs don't let > > us have a segment register for guest_base? > > Everything non-Linux I think, which for user-mode emulation means bsd-user. Linux might also not allow to use a segment register if the prctl call with ARCH_SET_GS fails. OTOH I have no idea why it can fail, but we actually check that it doesn't fail before using %gs. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net