From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: Mykola Kvach <xakep.amatop@gmail.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Mykola Kvach <Mykola_Kvach@epam.com>,
Bertrand Marquis <bertrand.marquis@arm.com>,
Jens Wiklander <jens.wiklander@linaro.org>,
Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>,
Michal Orzel <michal.orzel@amd.com>
Subject: Re: [PATCH v8 06/13] xen/arm: tee: keep init_tee_secondary() for hotplug and resume
Date: Thu, 7 May 2026 22:26:58 +0000 [thread overview]
Message-ID: <87fr42svny.fsf@epam.com> (raw)
In-Reply-To: <666917e8e8e435640c272c19908f412c315b2dc6.1775125380.git.mykola_kvach@epam.com> (Mykola Kvach's message of "Thu, 2 Apr 2026 13:45:07 +0300")
Hi Mykola,
Mykola Kvach <xakep.amatop@gmail.com> writes:
> From: Mykola Kvach <mykola_kvach@epam.com>
>
> init_tee_secondary() was marked __init and freed after boot. Calling it
> from the CPU hotplug/resume path then executed discarded code, which
> could crash Xen. Drop __init so the TEE mediator secondary init can run
> safely on hotplugged and resumed CPUs.
>
> Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
> ---
> xen/arch/arm/tee/tee.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/arch/arm/tee/tee.c b/xen/arch/arm/tee/tee.c
> index 8501443c8e..00e561fc78 100644
> --- a/xen/arch/arm/tee/tee.c
> +++ b/xen/arch/arm/tee/tee.c
> @@ -128,7 +128,7 @@ static int __init tee_init(void)
>
> presmp_initcall(tee_init);
>
> -void __init init_tee_secondary(void)
> +void init_tee_secondary(void)
> {
> if ( cur_mediator && cur_mediator->ops->init_secondary )
> cur_mediator->ops->init_secondary();
--
WBR, Volodymyr
next prev parent reply other threads:[~2026-05-07 22:27 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-02 10:45 [PATCH v8 00/13] Add initial Xen Suspend-to-RAM support on ARM64 Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 01/13] xen/arm: Add suspend and resume timer helpers Mykola Kvach
2026-04-20 15:22 ` Luca Fancellu
2026-04-02 10:45 ` [PATCH v8 02/13] xen/arm: gic-v2: Implement GIC suspend/resume functions Mykola Kvach
2026-04-21 13:24 ` Luca Fancellu
2026-05-07 7:48 ` Mykola Kvach
2026-05-08 10:56 ` Luca Fancellu
2026-05-10 6:02 ` Mykola Kvach
2026-05-11 6:40 ` Luca Fancellu
2026-05-11 20:41 ` Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 03/13] xen/arm: gic-v3: tolerate retained redistributor LPI state across CPU_OFF Mykola Kvach
2026-04-22 15:55 ` Luca Fancellu
2026-05-05 6:06 ` Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 04/13] xen/arm: gic-v3: Implement GICv3 suspend/resume functions Mykola Kvach
2026-04-23 11:28 ` Luca Fancellu
2026-05-05 7:26 ` Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 05/13] xen/arm: gic-v3: add ITS suspend/resume support Mykola Kvach
2026-04-24 10:53 ` Luca Fancellu
2026-05-05 10:09 ` Mykola Kvach
2026-05-08 11:30 ` Luca Fancellu
2026-05-08 22:11 ` Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 06/13] xen/arm: tee: keep init_tee_secondary() for hotplug and resume Mykola Kvach
2026-04-24 10:59 ` Luca Fancellu
2026-04-27 8:19 ` Bertrand Marquis
2026-05-07 22:26 ` Volodymyr Babchuk [this message]
2026-04-02 10:45 ` [PATCH v8 07/13] xen/arm: ffa: fix notification SRI across CPU hotplug/suspend Mykola Kvach
2026-04-24 12:05 ` Luca Fancellu
2026-04-27 8:20 ` Bertrand Marquis
2026-05-05 10:18 ` Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 08/13] iommu/ipmmu-vmsa: Implement suspend/resume callbacks Mykola Kvach
2026-04-24 13:34 ` Luca Fancellu
2026-05-05 11:45 ` Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 09/13] arm/smmu-v3: add suspend/resume handlers Mykola Kvach
2026-04-27 14:01 ` Luca Fancellu
2026-04-27 14:02 ` Luca Fancellu
2026-05-05 15:23 ` Mykola Kvach
2026-05-08 12:21 ` Luca Fancellu
2026-05-08 21:44 ` Mykola Kvach
2026-05-09 7:50 ` Luca Fancellu
2026-04-02 10:45 ` [PATCH v8 10/13] xen/arm: Resume memory management on Xen resume Mykola Kvach
2026-04-27 14:50 ` Luca Fancellu
2026-05-05 15:55 ` Mykola Kvach
2026-05-08 13:26 ` Luca Fancellu
2026-05-08 20:51 ` Mykola Kvach
2026-05-07 22:06 ` Volodymyr Babchuk
2026-05-08 20:59 ` Mykola Kvach
2026-05-11 16:11 ` Oleksandr Tyshchenko
2026-04-02 10:45 ` [PATCH v8 11/13] xen/arm: Save/restore context on suspend/resume Mykola Kvach
2026-04-27 15:26 ` Luca Fancellu
2026-05-07 22:17 ` Volodymyr Babchuk
2026-05-08 10:38 ` Mykola Kvach
2026-05-11 16:00 ` Oleksandr Tyshchenko
2026-05-11 18:52 ` Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 12/13] xen/arm: Implement PSCI SYSTEM_SUSPEND call (host interface) Mykola Kvach
2026-04-27 16:21 ` Luca Fancellu
2026-05-05 16:15 ` Mykola Kvach
2026-04-02 10:45 ` [PATCH v8 13/13] xen/arm: Add support for system suspend triggered by hardware domain Mykola Kvach
2026-04-02 11:00 ` Jan Beulich
2026-04-29 8:05 ` Luca Fancellu
2026-05-05 20:34 ` Mykola Kvach
2026-05-07 22:25 ` Volodymyr Babchuk
2026-05-08 8:37 ` Mykola Kvach
2026-05-08 14:30 ` Luca Fancellu
2026-05-08 20:49 ` Mykola Kvach
2026-04-16 12:51 ` PING: Re: [PATCH v8 00/13] Add initial Xen Suspend-to-RAM support on ARM64 Mykola Kvach
2026-04-16 12:52 ` Mykola Kvach
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=87fr42svny.fsf@epam.com \
--to=volodymyr_babchuk@epam.com \
--cc=Mykola_Kvach@epam.com \
--cc=bertrand.marquis@arm.com \
--cc=jens.wiklander@linaro.org \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--cc=xakep.amatop@gmail.com \
--cc=xen-devel@lists.xenproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.