From: Bertrand Marquis <bertrand.marquis@arm.com>
To: xen-devel@lists.xenproject.org
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Anthony PERARD" <anthony.perard@vates.tech>,
"Michal Orzel" <michal.orzel@amd.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Julien Grall" <julien@xen.org>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Volodymyr Babchuk" <volodymyr_babchuk@epam.com>,
"Jens Wiklander" <jens.wiklander@linaro.org>,
"Julien Grall" <jgrall@amazon.com>
Subject: [PATCH v8 0/6] FF-A VM to VM support
Date: Mon, 11 Aug 2025 15:34:41 +0200 [thread overview]
Message-ID: <cover.1754899329.git.bertrand.marquis@arm.com> (raw)
This patch serie adds support to use FF-A between VM for communications
using indirect messages.
It adds a Kconfig parameter to enable this feature and marks it as
experimental as for now there is no system to restrict communication
rights between VM using this system.
It also adds support to use VM to VM communications using FF-A even if
there is no firmware support for FF-A. As this feature enables FF-A
support in all cases, we also introduce a new command line parameter to
allow the user to force which tee is to be used between FF-A and Optee
to have a solution to enable optee support if FF-A VM to VM is enabled.
Changes since v7:
- typo fixes
- use LIST_HEAD and DEFINE_RWLOCK
- add Jens R-b and Julien A-b
Changes since v6:
- use a rwlock to protect access to the chain list of context
- rebase on top of staging
- add some R-b/A-b from Jens and Julien
Changes since v5:
- coding style fixes
- rework version negociation to use the context lock
- split probe into fw and vm to vm probe to make code clearer
- add some R-b from Jens
Changes since v4:
- fix typos and optimize command line parameter
- split VM to VM support in 2 patches to ease review
- organize ffa contexts in a chain list to be able to build the partinfo
result without taking the global domain lock
- introduce a maximum number of SPs to prevent holding the CPU for too
long during partinfo call
- use an atomic to store the number of FF-A VMs
- prevent potential overflows in indirect message handling
- fix copy bug in indirect message introduced in v4
Changes since v3:
- reintroduce firmare v1.0 support in partinfo
- fix a possible TOC/TOU issue in indirect message handling
- typos and small fixes
Changes since v2:
- Rework partition_info_get implementation
- Taint Xen and display a message when VM to VM is enabled
- Various fixes explained in each patch
Changes since v1 (rfc):
- add a tee command line parameter
- use IS_ENABLED instead of ifdef when possible
- rebase on latest staging
Bertrand Marquis (6):
xen/arm: Create tee command line parameter
xen/arm: ffa: Rework partinfo_get implementation
xen/arm: ffa: Introduce VM to VM support
xen/arm: ffa: Add buffer full notification support
xen/arm: ffa: Add indirect message between VM
xen/arm: ffa: Enable VM to VM without firmware
docs/misc/xen-command-line.pandoc | 14 ++
xen/arch/arm/include/asm/tee/tee.h | 4 +
xen/arch/arm/tee/Kconfig | 11 ++
xen/arch/arm/tee/ffa.c | 112 ++++++++---
xen/arch/arm/tee/ffa_msg.c | 117 ++++++++++--
xen/arch/arm/tee/ffa_notif.c | 140 ++++++++------
xen/arch/arm/tee/ffa_partinfo.c | 292 ++++++++++++++++++++---------
xen/arch/arm/tee/ffa_private.h | 158 +++++++++++++---
xen/arch/arm/tee/tee.c | 32 ++++
9 files changed, 665 insertions(+), 215 deletions(-)
--
2.47.1
next reply other threads:[~2025-08-11 13:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-11 13:34 Bertrand Marquis [this message]
2025-08-11 13:34 ` [PATCH v8 1/6] xen/arm: Create tee command line parameter Bertrand Marquis
2025-08-11 13:34 ` [PATCH v8 2/6] xen/arm: ffa: Rework partinfo_get implementation Bertrand Marquis
2025-08-11 13:34 ` [PATCH v8 3/6] xen/arm: ffa: Introduce VM to VM support Bertrand Marquis
2025-08-11 13:35 ` [PATCH v8 4/6] xen/arm: ffa: Add buffer full notification support Bertrand Marquis
2025-08-11 13:35 ` [PATCH v8 5/6] xen/arm: ffa: Add indirect message between VM Bertrand Marquis
2025-08-11 13:35 ` [PATCH v8 6/6] xen/arm: ffa: Enable VM to VM without firmware Bertrand Marquis
2025-08-12 11:07 ` [PATCH v8 0/6] FF-A VM to VM support Julien Grall
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.1754899329.git.bertrand.marquis@arm.com \
--to=bertrand.marquis@arm.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=jbeulich@suse.com \
--cc=jens.wiklander@linaro.org \
--cc=jgrall@amazon.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.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.