From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTxTZ-0001oB-O4 for qemu-devel@nongnu.org; Tue, 16 Sep 2014 14:27:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTxTT-0007Rl-KF for qemu-devel@nongnu.org; Tue, 16 Sep 2014 14:27:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTxTT-0007RK-Ds for qemu-devel@nongnu.org; Tue, 16 Sep 2014 14:27:35 -0400 Message-ID: <5418810E.3080100@redhat.com> Date: Tue, 16 Sep 2014 20:27:26 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1410793421-6453-1-git-send-email-pbonzini@redhat.com> <1410793421-6453-4-git-send-email-pbonzini@redhat.com> <5418716A.9080508@gmail.com> <54187B3D.8000909@twiddle.net> In-Reply-To: <54187B3D.8000909@twiddle.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 03/14] target-ppc: use separate indices for various translation modes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , Tom Musta , qemu-devel@nongnu.org Cc: agraf@suse.de Il 16/09/2014 20:02, Richard Henderson ha scritto: > While we could probably fix this for ppc (using addis), it's not nearly so > easily fixable for arm -- without impacting performance anyway. > > Does 96k worth of TLBs really help that much? Are all 12 of them actually > used? Can we use a more complex encoding scheme for the mmu_idx and use less? In practice, only 3 to 7 are---hence my original attempt at using some kind of FIFO caching: user mode, translation enabled kernel mode, paging disabled kernel mode, paging enabled supervisor mode, paging disabled supervisor mode, paging enabled Plus perhaps kernel and supervisor mode with only data paging enabled. You could lump together the IR!=0, DR!=0 cases, and flush that one TLB index if the IR/DR pair changes with respect to the last time. This would use 6 indices. Paolo