Received: from eggs.gnu.org ([2001:4830:134:3::10]:41727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b96PS-0002Ss-Nu for qemu-devel@nongnu.org; Sat, 04 Jun 2016 03:54:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b96PM-0005C1-Lf for qemu-devel@nongnu.org; Sat, 04 Jun 2016 03:54:16 -0400 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]:35598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b96PM-0005Bm-Ea for qemu-devel@nongnu.org; Sat, 04 Jun 2016 03:54:12 -0400 Received: by mail-pa0-x241.google.com with SMTP id gp3so7647983pac.2 for ; Sat, 04 Jun 2016 00:54:10 -0700 (PDT) Received: from bigtime.twiddle.net (71-37-54-227.tukw.qwest.net. [71.37.54.227]) by smtp.gmail.com with ESMTPSA id h5sm10837028pat.0.2016.06.04.00.54.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jun 2016 00:54:08 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Sat, 4 Jun 2016 00:54:05 -0700 Message-Id: <1465026847-6744-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 0/2] tcg/i386 guest_base improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The first change does two things: (1) improve bsd-user so that it doesn't continually reload guest_base into a temp register and (2) extract the bulk of the guest_base logic to a routine that is run once at startup. The second change adds segmentation support to 32-bit linux. There, if we're using a guest base, we can save 3 bytes per memory op by using a segment override. In addition, if we're using a reserved_va, we can set up the segment such that guest memory references are constrained by the segment. Comments? r~ Richard Henderson (2): tcg/i386: Reserve register for guest_base if a segment isn't available tcg/i386: Use segment for 32-bit guest base on linux tcg/i386/tcg-target.inc.c | 181 +++++++++++++++++++++++++--------------------- 1 file changed, 100 insertions(+), 81 deletions(-) -- 2.5.5