From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 524F8C3DA70 for ; Tue, 23 Jul 2024 12:28:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1KDfSOSrWN/ixWU50Ufgb/viJjkhw1guLVBVo5V0wvw=; b=qB/ebjRpDl+k3zknyy4wKPpph+ SAuWHwuv/Zoa45WGiD1XnypfkJHu4d8EanpWGuKquCuA8dQ1k4T8v3m/jGGgfSVjbKEfxU+ae1KIX xaWIfG1Q9TiliS+l6NaZ9TzFwlpa3PqdavBYEVygZmOXtr/UfjzRGc49D2z9x18zsIZKegWjXaW2D Iwo4nWyDJjQ3w09c+LwKORvsIvtlQyVWSyyOT+iPgv9sv02FjjQx0Ba2YZ4mNJ6jEvfnPK9P4eRxG krgocM5B0vpEryq5+mcKJEvFcucX+cFsg6XHxoXc5gbcpXllRrP4JpWdo/Amtp48q5/xr8UtQtHVO iIHPSz8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWEcV-0000000CNzY-1XVq; Tue, 23 Jul 2024 12:27:55 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWEc7-0000000CNtM-2nVL for linux-arm-kernel@lists.infradead.org; Tue, 23 Jul 2024 12:27:33 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D9AD6139F; Tue, 23 Jul 2024 05:27:53 -0700 (PDT) Received: from J2N7QTR9R3 (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A0B2F3F73F; Tue, 23 Jul 2024 05:27:27 -0700 (PDT) Date: Tue, 23 Jul 2024 13:27:22 +0100 From: Mark Rutland To: Luca Fancellu 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 Message-ID: References: <20240716142906.1502802-1-luca.fancellu@arm.com> <20240716142906.1502802-7-luca.fancellu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240716142906.1502802-7-luca.fancellu@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240723_052731_771306_62547AEA X-CRM114-Status: GOOD ( 19.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 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 >