From: Mark Rutland <mark.rutland@arm.com>
To: Luca Fancellu <luca.fancellu@arm.com>
Cc: andre.przywara@arm.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 6/6] aarch64: Start Xen on Armv8-R at EL2
Date: Tue, 23 Jul 2024 13:27:22 +0100 [thread overview]
Message-ID: <Zp-hqtjy1fgLb38H@J2N7QTR9R3> (raw)
In-Reply-To: <20240716142906.1502802-7-luca.fancellu@arm.com>
On Tue, Jul 16, 2024 at 03:29:06PM +0100, Luca Fancellu wrote:
> When bootwrapper is compiled with Xen support and it is started
> at EL2 on Armv8-R AArch64, keep the current EL and jump to the
> Xen image.
>
> Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Just to check, this requires using spin-table, right?
I don't expect there to be interworking between the boot-wrapper and
Xen.
Mark.
> ---
> v2 changes:
> - Don't write 1 on flag_keep_el since now the logic will jump to
> reset_no_el3 and write it there.
> - removed check for smc conduit when Xen is booted, change commit
> message.
> ---
> Makefile.am | 1 +
> arch/aarch64/boot.S | 2 ++
> 2 files changed, 3 insertions(+)
>
> diff --git a/Makefile.am b/Makefile.am
> index 34fbfb1f4ff8..bafce34682c3 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -112,6 +112,7 @@ XEN_CHOSEN := xen,xen-bootargs = \"$(XEN_CMDLINE)\"; \
> compatible = \"xen,linux-zimage\", \"xen,multiboot-module\"; \
> reg = <0x0 $(DOM0_OFFSET) 0x0 $(KERNEL_SIZE)>; \
> };
> +DEFINES += -DXEN
> endif
>
> if INITRD
> diff --git a/arch/aarch64/boot.S b/arch/aarch64/boot.S
> index 2a8234f7a17d..38ed4ed48985 100644
> --- a/arch/aarch64/boot.S
> +++ b/arch/aarch64/boot.S
> @@ -88,6 +88,7 @@ reset_at_el2:
> cmp x0, 0xf
> bne reset_no_el3
>
> +#if !defined(XEN)
> /*
> * Armv8-R AArch64 is found, check if Linux can be booted.
> * Check MSA_frac, bits [55:52]:
> @@ -107,6 +108,7 @@ reset_at_el2:
> mov w0, #SPSR_KERNEL_EL1
> ldr x1, =spsr_to_elx
> str w0, [x1]
> +#endif
>
> bl cpu_init_armv8r_el2
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-07-23 12:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-16 14:29 [PATCH v2 0/6] Add Armv8-R AArch64 support Luca Fancellu
2024-07-16 14:29 ` [PATCH v2 1/6] aarch64: Rename labels and prepare for lower EL booting Luca Fancellu
2024-07-16 14:29 ` [PATCH v2 2/6] aarch64: Prepare " Luca Fancellu
2024-07-16 14:29 ` [PATCH v2 3/6] aarch64: Remove TSCXT bit set from SCTLR_EL2_RESET Luca Fancellu
2024-07-19 10:05 ` Mark Rutland
2024-07-16 14:29 ` [PATCH v2 4/6] aarch64: Introduce EL2 boot code for Armv8-R AArch64 Luca Fancellu
2024-07-29 15:01 ` Mark Rutland
2024-07-29 15:27 ` Luca Fancellu
2024-07-29 16:14 ` Mark Rutland
2024-07-16 14:29 ` [PATCH v2 5/6] aarch64: Support PSCI " Luca Fancellu
2024-07-29 16:09 ` Mark Rutland
2024-07-30 11:31 ` Luca Fancellu
2024-07-30 12:55 ` Mark Rutland
2024-07-16 14:29 ` [PATCH v2 6/6] aarch64: Start Xen on Armv8-R at EL2 Luca Fancellu
2024-07-23 12:27 ` Mark Rutland [this message]
2024-07-23 12:35 ` Luca Fancellu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zp-hqtjy1fgLb38H@J2N7QTR9R3 \
--to=mark.rutland@arm.com \
--cc=andre.przywara@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=luca.fancellu@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox