From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDI2P-0003NG-1f for qemu-devel@nongnu.org; Mon, 19 Jan 2015 14:31:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDI2L-0005zQ-RR for qemu-devel@nongnu.org; Mon, 19 Jan 2015 14:31:00 -0500 Received: from mail-qc0-x22c.google.com ([2607:f8b0:400d:c01::22c]:47769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDI2L-0005zI-NP for qemu-devel@nongnu.org; Mon, 19 Jan 2015 14:30:57 -0500 Received: by mail-qc0-f172.google.com with SMTP id i8so18845531qcq.3 for ; Mon, 19 Jan 2015 11:30:57 -0800 (PST) Sender: Richard Henderson Message-ID: <54BD5B6B.6090708@twiddle.net> Date: Mon, 19 Jan 2015 11:30:51 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1413910544-20150-1-git-send-email-greg.bellows@linaro.org> <1413910544-20150-6-git-send-email-greg.bellows@linaro.org> <54BD426A.5070107@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v7 05/32] target-arm: make arm_current_el() return EL3 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Sergey Fedorov , "Edgar E. Iglesias" , QEMU Developers , Fabian Aggeler , Greg Bellows On 01/19/2015 11:00 AM, Peter Maydell wrote: > Alternatively (better!), for a lot of the tlb_flush()es triggered > by target-arm code we could be more precise about the affected > mmu_idx values, since the common case is going to be > "NS EL1 did something that needs a TLB flush", and by definition > that can't affect TLB entries for EL2, EL3 or S-EL1/EL0. > > So I think my preference would be to use 7 mmu indexes, > and add a tlb_flush_mmuidx() function. (Assuming I'm > not missing anything that makes that not workable...) That new interface does seem very reasonable. As to whether you've missed something in the ARM semantics, I guess we'll find out. ;-) r~