From nobody Mon Feb 9 18:43:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1605812905; cv=none; d=zohomail.com; s=zohoarc; b=hIYil0Tqgip7b8NXdPCHZpiyKYuLZlI6FRgIj4HWJbgaPb76pxmg5sLHl4h67ceS6J+gXZkYeBOqkQ41ytkFF7wC+pbhe4QihkmZewW4Eilyliweqwt/JTX/IHxkSW75OMn30iA6GOXSKrCUv1BwscYoE3rpyORSeV8rax25cbw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605812905; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=OboHhEHEvSZ64fH4mO7AsxamLOG7CeMXAAQmTYLPwD0=; b=nAxNQ+Wa37LEx16mermW/PnOeNLS3cWfSgVAMI6Kuq7fM5H7QlAi9rygzT2O+0J7JLWc7L9cAmabxjqS92IZ3xY86FCCHIQwC7psZ+zK+Gxys++sv9k2fbf3FKA9DuQak7HW8z5PBHGZblTp8FgztFum6lik1IRM9qVc0fyZ0xY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1605812905752545.6045753641034; Thu, 19 Nov 2020 11:08:25 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.31364.61717 (Exim 4.92) (envelope-from ) id 1kfpHk-0005aV-Bg; Thu, 19 Nov 2020 19:08:00 +0000 Received: by outflank-mailman (output) from mailman id 31364.61717; Thu, 19 Nov 2020 19:08:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfpHk-0005aN-7Y; Thu, 19 Nov 2020 19:08:00 +0000 Received: by outflank-mailman (input) for mailman id 31364; Thu, 19 Nov 2020 19:07:58 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfpHi-0005Y6-3U for xen-devel@lists.xenproject.org; Thu, 19 Nov 2020 19:07:58 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfpHh-0003Ss-Qi; Thu, 19 Nov 2020 19:07:57 +0000 Received: from 54-240-197-235.amazon.com ([54.240.197.235] helo=ufe34d9ed68d054.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfpHh-0000TE-Ia; Thu, 19 Nov 2020 19:07:57 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfpHi-0005Y6-3U for xen-devel@lists.xenproject.org; Thu, 19 Nov 2020 19:07:58 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfpHh-0003Ss-Qi; Thu, 19 Nov 2020 19:07:57 +0000 Received: from 54-240-197-235.amazon.com ([54.240.197.235] helo=ufe34d9ed68d054.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfpHh-0000TE-Ia; Thu, 19 Nov 2020 19:07:57 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=OboHhEHEvSZ64fH4mO7AsxamLOG7CeMXAAQmTYLPwD0=; b=nxMldoX8fo6JIFDoFUq3JXAQZ IirT47R30UvlFUhhaYsFHvyUpOZfY8QNrNlbch3PqDjSe/IyEhNkZrV6yMbjtarBnjdiPawRBKqL0 DeqnHdJXGjt3NvT11mgBXw/dw3+S1x2I8oRis0OguvPO90nfTbP60ojmlWm2Psdr8fvFw=; From: Julien Grall To: xen-devel@lists.xenproject.org Cc: bertrand.marquis@arm.com, Julien Grall , Stefano Stabellini , Julien Grall , Volodymyr Babchuk Subject: [PATCH RFC 3/6] xen/arm: setup: Call unregister_init_virtual_region() after the last init function Date: Thu, 19 Nov 2020 19:07:48 +0000 Message-Id: <20201119190751.22345-4-julien@xen.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201119190751.22345-1-julien@xen.org> References: <20201119190751.22345-1-julien@xen.org> X-ZohoMail-DKIM: pass (identity @xen.org) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Julien Grall discard_init_modules() is an init function, if the path contains a BUG() or WARN() we still want to get the full stack trace. The init virtual region is now kept after the last init function has been called. Signed-off-by: Julien Grall Reviewed-by: Bertrand Marquis --- xen/arch/arm/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 7fcff9af2a7e..2532ec973913 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -72,10 +72,11 @@ domid_t __read_mostly max_init_domid; =20 static __used void init_done(void) { + discard_initial_modules(); + /* Must be done past setting system_state. */ unregister_init_virtual_region(); =20 - discard_initial_modules(); free_init_memory(); startup_cpu_idle_loop(); } --=20 2.17.1