Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4815C3ABAC for ; Tue, 6 May 2025 11:44:36 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.977094.1364163 (Exim 4.92) (envelope-from ) id 1uCGik-0005Lf-A6; Tue, 06 May 2025 11:44:22 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 977094.1364163; Tue, 06 May 2025 11:44:22 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uCGik-0005LY-7N; Tue, 06 May 2025 11:44:22 +0000 Received: by outflank-mailman (input) for mailman id 977094; Tue, 06 May 2025 11:44:21 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uCGii-0005LQ-Uo for xen-devel@lists.xenproject.org; Tue, 06 May 2025 11:44:20 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1uCGii-00Cel4-1J; Tue, 06 May 2025 11:44:20 +0000 Received: from [2a02:8012:3a1:0:7157:32ca:2aea:33a3] by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uCGii-00HKtH-0a; Tue, 06 May 2025 11:44:20 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=D3rPs2AkxDjMQf7Y9znqArR1fSXVuekCPjEXbZee/1U=; b=In5Qey0A/ex62MOGgH93hjTJzf M1DLbNdD5TDCWs/3JNhMfBgpgwgC736I/NLwXNumeMTA2FCz30JALkY8bZI4KHRQDf7GRT3AmIycU 5BbdDsM/QZM/8o936YINM+46nupiTfO7U8pSGYLRdz2ogIpY4m2yGHEXr0A6whkWDId8=; Message-ID: Date: Tue, 6 May 2025 12:44:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/7] docs/arm: Document Xen booting protocol on Armv8-R Content-Language: en-GB To: Luca Fancellu , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk References: <20250429152057.2380536-1-luca.fancellu@arm.com> <20250429152057.2380536-2-luca.fancellu@arm.com> From: Julien Grall In-Reply-To: <20250429152057.2380536-2-luca.fancellu@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 29/04/2025 16:20, Luca Fancellu wrote: > Document the requirement needed to boot Xen on Armv8-R platforms. > > Signed-off-by: Luca Fancellu > --- > v4 changes: > - New patch > --- > docs/misc/arm/booting.txt | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/docs/misc/arm/booting.txt b/docs/misc/arm/booting.txt > index 21ae74837dcc..719af74f1e69 100644 > --- a/docs/misc/arm/booting.txt > +++ b/docs/misc/arm/booting.txt > @@ -62,6 +62,14 @@ Xen relies on some settings the firmware has to configure in EL3 before starting > > * The bit SCR_EL3.HCE (resp. SCR.HCE for 32-bit ARM) must be set to 1. > > +When Xen runs on Armv8-R, the highest exception level is EL2 and the only > +available state is secure (S) on Arm64 and non secure (NS) on Arm32, hence the > +above requirements need to be adjusted to this case: > +> +* Xen must be entered in S EL2 mode on Arm64 and in NS EL2 mode on Arm32. I think it would be better to update the line "Xen must be entered in NS EL2 mode" to clarify the state for 64-bit Arm. > +> +* Xen must be entered with MPU off and data cache disabled (SCTLR_EL2.M bit and > + SCTLR_EL2.C set to 0). This line is valid for Armv8-A/Armv7-A when using the Image/zImage protocol. > > [1] linux/Documentation/arm/booting.rst > Latest version: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/arch/arm/booting.rst -- Julien Grall