From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOteu-00040I-PI for qemu-devel@nongnu.org; Fri, 20 Feb 2015 14:54:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOtep-00037e-JY for qemu-devel@nongnu.org; Fri, 20 Feb 2015 14:54:44 -0500 Received: from mail-qc0-x22c.google.com ([2607:f8b0:400d:c01::22c]:45571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOtep-00037Y-En for qemu-devel@nongnu.org; Fri, 20 Feb 2015 14:54:39 -0500 Received: by qcvp6 with SMTP id p6so2524432qcv.12 for ; Fri, 20 Feb 2015 11:54:39 -0800 (PST) Sender: Richard Henderson Message-ID: <54E790FB.701@twiddle.net> Date: Fri, 20 Feb 2015 11:54:35 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1424455040-3335-1-git-send-email-pbonzini@redhat.com> <1424455040-3335-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1424455040-3335-4-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/3] target-ppc: use separate indices for various translation modes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: agraf@suse.de On 02/20/2015 09:57 AM, Paolo Bonzini wrote: > PowerPC TCG flushes the TLB on every IR/DR change, which basically > means on every user<->kernel context switch. Encode IR/DR in the > MMU index. > > This brings the number of TLB flushes down from ~900000 to ~50000 > for starting up the Debian installer, which is in line with x86 > and gives a ~10% performance improvement. > > Signed-off-by: Paolo Bonzini > --- > target-ppc/cpu.h | 12 +++++++----- > target-ppc/excp_helper.c | 3 --- > target-ppc/helper_regs.h | 15 +++++++++------ > 3 files changed, 16 insertions(+), 14 deletions(-) I'm not an expert on ppc memory management, but it certainly LGTM. r~