From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:ac2:4c03:0:0:0:0:0 with SMTP id t3csp15521442lfq; Mon, 4 Jan 2021 04:08:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3ZG3r2NRJqN7hlEYbQMMwbiwSwCKX3ntWB8Rkq1x+/Tf1ARt7IltKaWn8Gx3g2j5+d6ot X-Received: by 2002:a25:f30a:: with SMTP id c10mr99782232ybs.514.1609762132307; Mon, 04 Jan 2021 04:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609762132; cv=none; d=google.com; s=arc-20160816; b=z4z2IQk4M3+4wUUqv3Akvt83fzF92gCMbU+aqK2cugIUk60VYONCkr8KONBzpqQpkQ yGRi9Mb2d+fkNWlMgZ9pqI9EYtWackqz+mAMT5yqPbWFRrLzWkaS6/zrn4Hvzmf1Ehch EfpQOdq8fTYQiz2tCQXIo8tlOBSj8xlk0qEEPAB0c1Md3Rf6SE5Cp5xL8SI8FEhP+3ZI R2bXf13Jo8DqgG+4ZYLoyUV4tHWrSXV4WnsqSoKNNpxzttPE/sKl1bv7AzfDI0W7MaJp XxrohR8devKgFCbzC/uxpefrDdJk10ZiEyPqoXfScjrBZTQKH5SrBSqd28NIIhtps0iy zcRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:organization:message-id:date :subject:to:from; bh=sJ9ly0dYLTcrQRKFIFkH5PPhZi3vC6Oe6NIY1KG2pTk=; b=hEe2smUOEcAmLAjBJ0EWrBv2koflUygm2AiQ6s3hCMEEBes/Ku1dU7EmskzmhYAyYx GD2gpUPT2DlgfYnLSqGlM7BhiAPidAYKT/dE1c15p49rTiYLZNIFLm8/m9ZCUnjXFqlU XZskTZqMr3laxAbUw+q1EmpucSiROAY7WTv33goJISyE3Jviifr6eXqYXIGGKg85wQrv CnGLKljyHl0JQ9+CBNSQYnR1E8hUD4v93r5IOInO8vYdSTMgodbJTCjHSEZRTfgt2P6K nHBQ8rUnyTwl0miCH8U9ib2LD4KjT43louxpoEH/56yc/yIp9qkJ0Put5aLB+jszAx0L DcZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x6si57412251ybo.478.2021.01.04.04.08.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jan 2021 04:08:52 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:36088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwOfL-0003Gr-NY for alex.bennee@linaro.org; Mon, 04 Jan 2021 07:08:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwOfD-0003Gi-A8; Mon, 04 Jan 2021 07:08:43 -0500 Received: from poy.remlab.net ([2001:41d0:2:5a1a::]:60554 helo=ns207790.ip-94-23-215.eu) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwOf9-0002xT-Mq; Mon, 04 Jan 2021 07:08:43 -0500 Received: from basile.remlab.net (dzyqn8ypzhx7l91mxjsvy-3.rev.dnainternet.fi [IPv6:2001:14ba:a01a:be01:9434:f69e:d553:3be2]) (Authenticated sender: remi) by ns207790.ip-94-23-215.eu (Postfix) with ESMTPSA id 591405FC99; Mon, 4 Jan 2021 13:08:34 +0100 (CET) From: =?ISO-8859-1?Q?R=E9mi?= Denis-Courmont To: qemu-arm@nongnu.org Subject: Re: [PATCH 03/18] target/arm: use arm_is_el2_enabled() where applicable Date: Mon, 04 Jan 2021 14:08:31 +0200 Message-ID: <5669299.lOV4Wx5bFT@basile.remlab.net> Organization: Huawei Technologies, Finland In-Reply-To: <6f114b65-e6e8-e9a2-41f0-c3fda14680d0@linaro.org> References: <3337797.iIbC2pHGDl@basile.remlab.net> <20201218103759.19929-3-remi.denis.courmont@huawei.com> <6f114b65-e6e8-e9a2-41f0-c3fda14680d0@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2001:41d0:2:5a1a::; envelope-from=remi@remlab.net; helo=ns207790.ip-94-23-215.eu X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: dob7hzRyNNW0 Le maanantaina 21. joulukuuta 2020, 22.54.08 EET Richard Henderson a =C3=A9= crit : > On 12/18/20 2:37 AM, remi.denis.courmont@huawei.com wrote: > > From: R=C3=A9mi Denis-Courmont > >=20 > > Do not assume that EL2 is available in non-secure context. >=20 > Just noticed this wording is off. Should be > "Do not assume that EL2 is unavailable in a secure context" It would be clearer, but I'd hate to rereresend the patchset just for this. Indeed, the second sentence clarifies that this was meant reciprocally, i.e= =2E=20 that it should not be assumed that EL2 is always and only available in non- secure context: > > That equivalence is broken by ARMv8.4-SEL2. > >=20 > > Signed-off-by: R=C3=A9mi Denis-Courmont > > Reviewed-by: Richard Henderson > > --- > >=20 > > target/arm/cpu.h | 4 ++-- > > target/arm/helper-a64.c | 8 +------- > > target/arm/helper.c | 33 +++++++++++++-------------------- > > 3 files changed, 16 insertions(+), 29 deletions(-) =2D-=20 R=C3=A9mi Denis-Courmont