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

Re: Xen Armv8-R booting protocol


  • To: Luca Fancellu <Luca.Fancellu@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ayan Kumar Halder <ayankuma@xxxxxxx>
  • Date: Tue, 15 Apr 2025 14:06:41 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • 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=qPQ7FcqW3y9LQgjrm1/oJB4iJKi7acAPrk0yjn91VTI=; b=ujHHjmuhblU3g16aGsALJG07qUM8+X2om/XZgSKUL/J3l1NnxTNxtXsET7KTV3bM7hAb+tg+wF2WBmSYImYrxfx7C6sxkWDIyIn0+lJKdroHOdi4g8SUueCcZU8MVjF/mKrAo+jDBUV5QI0B5M7kLPNZdURze7tmCjuPIbIn6/K/yioDuRrm/jYruIHTVhQX5yy+aJySTkzkkKLei1Q7Y8vOIiOoCK+LbQ8ClbZYw+twws8RTxzRU+kSjCJptn8AZ82vZalqDQC+JSoRR8rzY1gXiKsz/aS1VdYsK6zAa9WmccSxt+wAc3dM+IoZpvUB9NQoa1Nud6BsHCNBsUQMJA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tLzawVvbUTLmV3G/TEV2EvcOO+MLb52Lktf9Bf1V0XgyBdBNugwkcPEQVSNYWT3KoWuFPh9h5aW/4uk8x1zmFadEZLjBtEWm0kcGoeLBQcKhpuY7sNS2mrPIfqbvn8sHNEuAz9Rq61puBv+cdWSZ54Knd7Zmb38au7AYNubu4ZtRgzWJ9L8mzU5lI8rYQ0TvfLfx4cKMRzPldKzeItoy88uuoN3GAtKViUKJPEmRyDMtNYFPL8nJI7i/81rZjQa+zr/uMao18ccf3EO+Zbh2w1NpwD36OuWju7s1/Ff2NOQ+idqLIa6QyZ7jnEkcyxKGUIxcgAJSsrj7a8xxfuDzNw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Julien Grall <julien@xxxxxxx>, "Orzel, Michal" <michal.orzel@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Delivery-date: Tue, 15 Apr 2025 13:06:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 15/04/2025 13:10, Luca Fancellu wrote:
Hi all,
Hi Luca,

I’ve started this thread to talk about a possible Xen booting protocol when 
running on Armv8-R,
currently Xen uses the Linux boot protocol and some other requirements stated 
in docs/misc/arm/booting.txt.

Unfortunately we don’t have anything already available for Armv8-R, the only 
implementation of a bootloader
is the boot-wrapper-aarch64 which keeps the MPU off, I/D cache off.

So my proposal is to add additional requirements in our 
docs/misc/arm/booting.txt for the case where Xen is
started on Armv8-R, under "Firmware/bootloader requirements”.
This makes sense.

diff --git a/docs/misc/arm/booting.txt b/docs/misc/arm/booting.txt
index 21ae74837dcc..39f029153e38 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 mode is secure, hence the above requirements needs to be adjusted to
+this case:
+
+* Xen must be entered in S EL2 mode.

Refer ARM DDI 0568A.c ID110520 A1.3.1

Armv8-R (AArch32) only supports a single Security state, Non-secure.

I see that it differs from Armv8-R (AArch64) ARM DDI 0600A.d ID120821, A1.3

The PE is always in Secure state.

Probably you can mention both.

+
+* Xen must be entered with 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

Please let me know your thoughts.

A question, Do you know if u-boot (or any other bootloader) is supported on Armv8-R ? Because someone needs to pass the DTB address in r2/x0.

- Ayan


Cheers,
Luca




 


Rackspace

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