From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35DD1C433DB for ; Mon, 4 Jan 2021 12:09:29 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6BE521E92 for ; Mon, 4 Jan 2021 12:09:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6BE521E92 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:37370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwOfv-0003mX-KG for qemu-devel@archiver.kernel.org; Mon, 04 Jan 2021 07:09:27 -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-devel@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-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" 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