[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 1/7] docs/arm: Document Xen booting protocol on Armv8-R


  • To: Julien Grall <julien@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Tue, 6 May 2025 12:24:48 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=xen.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RXQ13MP1qQOUxa75Dmjwu+oy1XGll8PGOuytf9nVLPc=; b=eBlFM23ThWDDLiMP5HfL3knTAu2qIMeUvHc62wduudmkGbqPWrPYrwwPMJ3TG4tA65zsn3lNMavglSyyeOTyeM9QgPLNxyygpXkhBoU48PLXKVlfvWXxOrNO6XFKMDkYhzSWsXYobEgqFbr9R63Yk1WEO8PWbH5sUZvw6JRQLulvGf68TjSjms76BgH1pYgLbZeICKdh+4J8sHNURwZJO7vs1UM7tuJHc0mv8SwDBkI/koLUmLW4ZrnY3JEF/YQal9AgM4sssf8kdOgqGy1fLA46Zyshxt93r9GqybcIDmHIbyoLITjM8pPOiPBScB8ejlkBQklAAFXi9iCgdnzmNA==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RXQ13MP1qQOUxa75Dmjwu+oy1XGll8PGOuytf9nVLPc=; b=l1w5Yrrf97WTmn2aXssFgyEJDFWzXmmwBs+v2j8MU+Zu/BQJut8VpyUVVjtyGnAZZtdv5h6SnKLC0OETbmatVmBBVCORW4mLPEac+nQ7aKbd7qfN6Sdsb3+NUZGCZIVWGVyeA26YowsQ3YEyATz5NMgzLsyM8FsTs7yUg+FuB3Ye/hcHGf1U80Tq5rMixkNDYeTxMsciXZbUOrfj129GOUzGtmv0xcobXlaXPXDVh1zmErDF4hHgT5AYdD3xTw6nqm71rVT/5CcvOj1+cTHz1eWCgfIY2yml9k5IhyvhT2rpIF9QYwUccx+EtSGvPOovsBP1kZ6qaZ03tsF8wN9ZDw==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=oblvwEVcl6nHCQ/v25RAPJ8iUm1TZHtkh9Zyrd3T9U6//bLiY4FfKYgoADqi0wrwpEyD4tuIP88iIinP61B9LMPqApEWgHIGyM3ZTcnvFMFkP6A8OuzmA9YNnUtq6n5nb7X2qqAxBsjWdD+0EIwBmFfORLl0Xosz3KL1NqyMyvsM1TqENy0IUX6SY3RCXXC8UGsgaVLvDpNOfHG9XGT51FNhA4/WjmMD9HVptWFjrdIOGKYGDF5PuHyRelN+UkQKz6mynzBupdkATvuqdYMb38gmw7H2FxoNQRnbbMBLNbDT+c6dY6xaGuXqZOejF+ijIajaAai5GXP+GkWfxjo0cg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Q6j5Fx8Z41oEw56EiH/o9ZMr2iE30X63e9oo0VO3MIpH18zDDV/BFAbjWtcz31uTGFR/Sit6Ktku3f0cGZKoCn7uCeZ+i3L7TCNmvl6j2fdO2d5/guFXaHu9a2CiXqLGShfxT9Kr1C6PxD9UyyD1cFFo+tavNdu2TclIgPqbdMLDl26uDg463aGfOTluIJZI2GSr+LO+zKixopAN5lgH59eHGvTeFxe+O7HZbys+SrQOnffIiI1Ohrk+C2HTdEEpHwdsW2vceTjSgZNkjXSuntOjcDt3qYv/UEQlkr0tqxeuYJq4dqTGUtTepGHr7dRXpTMddPMf1UJ7aANtt9YpFg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 06 May 2025 12:25:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHbuRpmN9lJogKQoUiVWa6WakCsQrPFhjEAgAALLQA=
  • Thread-topic: [PATCH v4 1/7] docs/arm: Document Xen booting protocol on Armv8-R

Hi Julien,

> On 6 May 2025, at 12:44, Julien Grall <julien@xxxxxxx> wrote:
> 
> 
> 
> 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 <luca.fancellu@xxxxxxx>
>> ---
>> 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

Just to be sure to be on the same page, are you suggesting these changes on the 
original file?

diff --git a/docs/misc/arm/booting.txt b/docs/misc/arm/booting.txt
index 21ae74837dcc..c00c651805d7 100644
--- a/docs/misc/arm/booting.txt
+++ b/docs/misc/arm/booting.txt
@@ -58,10 +58,14 @@ Firmware/bootloader requirements
 
 Xen relies on some settings the firmware has to configure in EL3 before 
starting Xen.
 
-* Xen must be entered in NS EL2 mode
+* Xen must be entered in:
+  * Non-Secure EL2 mode for Armv8-A Arm64 and Arm32, Armv8-R Arm32.
+  * Secure EL2 mode for Armv8-R Arm64.
 
 * The bit SCR_EL3.HCE (resp. SCR.HCE for 32-bit ARM) must be set to 1.
 
+* Xen must be entered with MMU/MPU off and data cache disabled (SCTLR_EL2.M bit
+  and SCTLR_EL2.C set to 0).
 
 [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

Cheers,
Luca




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.