[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: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Tue, 15 Apr 2025 15:02:50 +0200
  • 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=2UJI+vwtKmDJo6teNYvsvaetk2wHgi7gy3GK5A2opvw=; b=Gzi4el8AF2ak5KnCG6XwLursCs01sHW8KzGFo3kwtCaRJrpWtBCsYDAAnFyi/rn27eR/zGZq8ox7KBGdSodhSIYIBca1JP44QnZU203PyUi3tL01qmFrYocMQMG9FOiMY/e8NGFhW79rvX4S35eDO3cfZN9w5L+TsGH0psjcrfDJfuaIluZkLw8dXBLhk4TTXZTIQNHNUxpMq37MPRIKzoJ+tbzWwJPwAL/auypMgwuKQX9YGrGkdduxgdpQvorOmXJ9H8p42+7a5Ub2rp+I/U0mqdJ97/dNm4kfoR7ERZnhGCiVR5oYI/KXx6zl/p84agPM6Ky6Cjf8UYHOSPGTxQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a7XO15qeDXXCMBzVaOXJ6MgpV90UFldXiuYi9LGUidKKtn7BtHnoYgE9Au/Ktt+lO6bZyXS3m1CteqZtK1f5PBLW59SoSc+0Wkkeom3Z1SRIbIM2f24vFmWRGyca8vDqrnXkomp9nW11JRvLYYg+nxFx7S/I6jqYX1xCGZGp5XtL5I744dONDtaxY/Y6mN5GWdbI/Lrqw51YVzA3KJPwKhXNpxSO5nDao+55p7gkqv0CYzcicjScer4/TaI4Sa7GZ0TF7LtZZbbXu0fcH51eodkUwnYHVrONRjWiBE7eE0EmQCZZE30r1Swl7J0mPE/UkLSuzuC95aaFrG0tqyABiQ==
  • 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>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Delivery-date: Tue, 15 Apr 2025 13:03:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 15/04/2025 14:10, Luca Fancellu wrote:
> Hi all,
> 
> 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”.
> 
> 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
I think in Arm docs, this is called state, i.e. secure/non-secure state.
Also, s/needs/need/

> +this case:
> +
> +* Xen must be entered in S EL2 mode.
> +
> +* 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.
I think we need to have a place for boot assumptions for Armv8-R, so this is a
good start. MPU work is Experimental for now, so we can treat it as a living doc
(MPU part) for now.

~Michal




 


Rackspace

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