From: Bertrand Marquis <bertrand.marquis@arm.com>
To: xen-devel@lists.xenproject.org
Cc: Volodymyr Babchuk <volodymyr_babchuk@epam.com>,
Jens Wiklander <jenswi@kernel.org>,
Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>,
Michal Orzel <michal.orzel@amd.com>
Subject: [PATCH v3 0/6] xen/arm: ffa: Harden notifications and enable VM-to-VM delivery
Date: Thu, 3 Sep 2026 16:43:25 +0200 [thread overview]
Message-ID: <cover.1788268510.git.bertrand.marquis@arm.com> (raw)
This series hardens FF-A notification handling in the Arm FF-A mediator
and completes local delivery for non-secure VM-to-VM notifications.
The serie was pushed and almost completely reviewed before 4.22 release
except for the last patch.
Hardening and state handling (Patches 1-4):
1) Fix notification pending interrupt delivery when vcpu0 is offline by
reusing a common global NPI injection helper.
2) Replace the single hypervisor notification boolean with a protected
HYP bitmap and keep bitmap lifecycle tied to the cached endpoint ID.
3) Tighten notification parameter validation so malformed BIND, UNBIND,
GET, and SET requests are rejected consistently before reaching
cached state or the SPMC.
4) Preserve the secure pending indication until secure notifications are
retrieved, protect the secure pending latch with notif_lock,
serialize SPMC INFO_GET polling, and keep INFO_GET return width
consistent with the caller.
Local VM notification delivery (Patches 5-6):
1) Track non-secure VM notification bindings locally, promote pending
state to a per-bit bitmap, and validate BIND/UNBIND requests
against that state.
2) Deliver non-secure VM-to-VM notifications locally, track whether a
local NPI is already armed, and only advertise notification support
when firmware capabilities or CONFIG_FFA_VM_TO_VM actually provide
it.
Backward compatibility: v1.0/v1.1 guests remain compatible. Valid
guest-visible notification behavior is preserved; the series only
tightens malformed-request handling and enables local non-secure
VM-to-VM delivery when CONFIG_FFA_VM_TO_VM is enabled.
Gitlab branch with patches:
https://gitlab.com/xen-project/people/bmarquis/xen-ffa/-/tree/vm-notif/v3?ref_type=heads
CI pass result (fail on both macos jobs, runner unavailable):
https://gitlab.com/xen-project/people/bmarquis/xen-ffa/-/pipelines/2816768212
Changes since 2:
- remove redundant irq raised cleanup in patch 6
- add R-b from Jens
Changes since v1:
- Keep pending notification state stable across failed local NPI injection.
- Tighten local NPI armed-state tracking for Hypervisor and VM notifications.
- Details in each commit message.
Bertrand Marquis (6):
xen/arm: ffa: Fix NPI injection when vcpu0 is offline
xen/arm: ffa: Track hypervisor notifications in a bitmap
xen/arm: ffa: Tighten notification parameter validation
xen/arm: ffa: Preserve secure notification state when polling SPMC
xen/arm: ffa: Track VM notification bindings locally
xen/arm: ffa: Deliver VM-to-VM notifications locally
xen/arch/arm/tee/ffa.c | 24 ++-
xen/arch/arm/tee/ffa_notif.c | 369 +++++++++++++++++++++++++++------
xen/arch/arm/tee/ffa_private.h | 25 ++-
3 files changed, 343 insertions(+), 75 deletions(-)
--
2.53.0
next reply other threads:[~2026-09-03 14:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 14:43 Bertrand Marquis [this message]
2026-09-03 14:43 ` [PATCH v3 1/6] xen/arm: ffa: Fix NPI injection when vcpu0 is offline Bertrand Marquis
2026-11-25 23:40 ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 2/6] xen/arm: ffa: Track hypervisor notifications in a bitmap Bertrand Marquis
2026-11-26 0:29 ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 3/6] xen/arm: ffa: Tighten notification parameter validation Bertrand Marquis
2026-11-26 3:01 ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 4/6] xen/arm: ffa: Preserve secure notification state when polling SPMC Bertrand Marquis
2026-11-29 21:27 ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 5/6] xen/arm: ffa: Track VM notification bindings locally Bertrand Marquis
2026-11-29 22:03 ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 6/6] xen/arm: ffa: Deliver VM-to-VM notifications locally Bertrand Marquis
2026-11-26 1:50 ` Volodymyr Babchuk
2026-11-29 22:59 ` 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=cover.1788268510.git.bertrand.marquis@arm.com \
--to=bertrand.marquis@arm.com \
--cc=jenswi@kernel.org \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--cc=volodymyr_babchuk@epam.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.