Received: by 2002:a19:ee0a:0:0:0:0:0 with SMTP id g10csp3652587lfb; Mon, 9 Nov 2020 06:01:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzz+eRaojJVVs9hS54+f4hRKbfYPGGoVUpn/e4kWr2vxOtilbYxLRgJhGYGdocX/0HlsaEr X-Received: by 2002:a25:9d08:: with SMTP id i8mr16793977ybp.2.1604930506722; Mon, 09 Nov 2020 06:01:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604930506; cv=none; d=google.com; s=arc-20160816; b=ltxfuR8yQDrCa97DHY3kLG0DW7G5XX5pkZk4gKsa16bBa3GeNS2i2Imamjb7oWHzra +jIB2zgBA+EtTHpKrTkRFH1xCkb2XKdeu9/ocOyse/+J7AA5UTOBzi+xRk287HsSCNPK ZSWqsE0lC98Id6UTw5oaVY26JVautsSYRG86/XXJi690nMNz+B34QBQL+vJjFvQaA+fb AltxMKPts5gc150Vnsw7oknu1qPACpUBDneIAA0D9Qxw5a2OmFC6XHDcJ1Ino9IIEtBK k6uimxUCjyheLC2NAqa34sK4cctESUV6g/b2WRJ67IESQFKzdkjLMA6BcF5UyUSsxlCA 8DQQ== 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:organization:message-id:date:subject:to:from; bh=3kpay0si4OyHoOm1bZHJI3HQUxb/wY7JMyXbNaLTnTs=; b=umGjOPU9FfOt5xgrlYr1TC2ijkvJ4mHb8vanyZo7s/G6ukpY+fbSp3rodC7tSzjdt7 jWoJ4AW3zR8slJ8CMq8YnqPxY5XUzIgFIaY6gBX9baned8BmmnZ4vto26BZGbb3zGCPf dBnp5ImWAuERdenlPqDRSnIUIWjCvxlrxiSABTJinaMf6NBCxq5e0hFmqCge6n2PPCt4 l/nu2bu219Rs5l1tmuVmjufCe1EKA57xSc36fjbgYkqr0TqyCGNUbkDc8yspYp5Y0tGe Og/jvMvad90cda8toVwm/iPw1mFCca4uGR1wFDtS9kPlycvegllKru76AC+DfQ+PrtCl 5CUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-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 b12si5576530ybk.281.2020.11.09.06.01.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Nov 2020 06:01:46 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-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-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:51004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kc7jt-0003UM-32 for alex.bennee@linaro.org; Mon, 09 Nov 2020 09:01:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kc7eY-0007RG-D9; Mon, 09 Nov 2020 08:56:14 -0500 Received: from poy.remlab.net ([2001:41d0:2:5a1a::]:60098 helo=ns207790.ip-94-23-215.eu) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kc7eW-0006K8-18; Mon, 09 Nov 2020 08:56:13 -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 3B4525FAAA; Mon, 9 Nov 2020 14:56:07 +0100 (CET) From: =?ISO-8859-1?Q?R=E9mi?= Denis-Courmont To: qemu-arm@nongnu.org Subject: [PATCHv2 00/17] ARM Secure EL2 extension Date: Mon, 09 Nov 2020 15:56:03 +0200 Message-ID: <5554493.MhkbZ0Pkbq@basile.remlab.net> Organization: Huawei Technologies, Finland 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-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/09 08:56:07 X-ACL-Warn: Detected OS = ??? 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.249, 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+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: 1EJe3kQHgDXc The following changes since commit 193f51ddcf1d87d725f1dfd51b8a95351c910e8f: Merge remote-tracking branch 'remotes/philmd-gitlab/tags/mips-fixes-20201= 109' into staging (2020-11-09 10:10:49 +0000) are available for review. Changes since version 1: =2D Add the first patch which was accidentally dropped. =2D Try to address comments from Peter and Richard. =2D--------------------------------------------------------------- R=C3=A9mi Denis-Courmont (17): target/arm: remove redundant tests target/arm: add arm_is_el2_enabled() helper target/arm: use arm_is_el2_enabled() where applicable target/arm: use arm_hcr_el2_eff() where applicable target/arm: factor MDCR_EL2 common handling target/arm: declare new AA64PFR0 bit-fields target/arm: add 64-bit S-EL2 to EL exception table target/arm: return the stage 2 index for stage 1 target/arm: add MMU stage 1 for Secure EL2 target/arm: add ARMv8.4-SEL2 system registers target/arm: do S1_ptw_translate() before address space lookup target/arm: secure stage 2 translation regime target/arm: handle VMID change in secure state target/arm: set HPFAR_EL2.NS on secure stage 2 faults target/arm: add ARMv8.4-SEL2 extension target/arm: enable Secure EL2 in max CPU target/arm: refactor vae1_tlbmask() target/arm/cpu-param.h | 2 +- target/arm/cpu.c | 10 +- target/arm/cpu.h | 92 ++++++++-- target/arm/cpu64.c | 1 + target/arm/helper-a64.c | 8 +- target/arm/helper.c | 421 ++++++++++++++++++++++++++++++-----------= =2D--- target/arm/internals.h | 54 +++++- target/arm/op_helper.c | 4 +- target/arm/tlb_helper.c | 3 + target/arm/translate-a64.c | 4 + target/arm/translate.c | 6 +- target/arm/translate.h | 1 + 12 files changed, 426 insertions(+), 180 deletions(-) =2D-=20 R=C3=A9mi Denis-Courmont http://www.remlab.net/