From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W84Fr-0006m7-Pg for qemu-devel@nongnu.org; Tue, 28 Jan 2014 03:42:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W84Fn-0001ec-Cf for qemu-devel@nongnu.org; Tue, 28 Jan 2014 03:42:47 -0500 Received: from mail-lb0-f175.google.com ([209.85.217.175]:55720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W84Fn-0001eY-5K for qemu-devel@nongnu.org; Tue, 28 Jan 2014 03:42:43 -0500 Received: by mail-lb0-f175.google.com with SMTP id p9so55805lbv.34 for ; Tue, 28 Jan 2014 00:42:42 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1390335150-13470-1-git-send-email-peter.maydell@linaro.org> <1390335150-13470-6-git-send-email-peter.maydell@linaro.org> From: Peter Maydell Date: Tue, 28 Jan 2014 08:42:21 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 05/24] target-arm: Add exception level to the AArch64 TB flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Laurent Desnogues , Patch Tracking , Michael Matz , Alexander Graf , "qemu-devel@nongnu.org Developers" , Claudio Fontana , Dirk Mueller , Will Newton , =?UTF-8?B?QWxleCBCZW5uw6ll?= , "kvmarm@lists.cs.columbia.edu" , Christoffer Dall , Richard Henderson On 28 January 2014 01:28, Peter Crosthwaite wrote: > On Wed, Jan 22, 2014 at 6:12 AM, Peter Maydell wrote: >> We already implicitly rely on the exception level being >> part of the TB flags for coprocessor access, > > Maybe that's the issue? Why not just treat the exception level as > state like any other and generate the TCG to just check it at > execution time? That would be ferociously expensive, because "am I privileged or not?" is baked into every single guest load or store. Including privilege level in the tb flags is standard for every target CPU we have. thanks -- PMM