Skip to content

xen/arm: ffa: Add PARTITION_INFO_GET_REGS support

Bertrand Marquis xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v14 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- rework SP cache handling to enforce 1.1+ structure size
- ensure unaligned-safe reads
- remove checks for SBZ fields
- tighten tag handling

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4xen/arm: ffa: Add start_index to VM partinfo helperxen/arch/arm/tee/ffa_partinfo.c+35 -260 replies
2/4xen/arm: ffa: Cache SP partition info at initxen/arch/arm/tee/ffa_partinfo.c+146 -701 reply
3/4xen/arm: ffa: Drop SP subscriber listsxen/arch/arm/tee/ffa_partinfo.c+47 -1231 reply
4/4xen/arm: ffa: Add cached GET_REGS supportxen/arch/arm/tee/ffa.c xen/arch/arm/tee/ffa_partinfo.c xen/arch/arm/tee/ffa_private.h+223 -42 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJens Wiklander
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] xen/arm: ffa: Add PARTITION_INFO_GET_REGS support

This series implements FF-A 1.2 PARTITION_INFO_GET_REGS support, providing register-based partition info retrieval as an efficient alternative to the RX buffer-based PARTITION_INFO_GET.

The serie is also introducing a caching system for the list of secure partitions to prevent retrieving it on each VM call as we expect it to be static and not changing over time.

The patches are organized as follows:
- patch 1 is modifying existing code to prepare for GET_REGS support by adding a start_index in the existing internal function
- patch 2 is introducing the secure partition list caching
- patch 3 is removing the existing suscribers list to directly use the cached secure partition list
- patch 4 is adding GET_REGS support

Changes since v1 (Jens comments):
- rework SP cache handling to enforce 1.1+ structure size
- ensure unaligned-safe reads
- remove checks for SBZ fields
- tighten tag handling

Bertrand Marquis (4):
xen/arm: ffa: Add start_index to VM partinfo helper xen/arm: ffa: Cache SP partition info at init xen/arm: ffa: Drop SP subscriber lists xen/arm: ffa: Add cached GET_REGS support

 xen/arch/arm/tee/ffa.c          |  23 +-
 xen/arch/arm/tee/ffa_partinfo.c | 565 ++++++++++++++++++++++----------
 xen/arch/arm/tee/ffa_private.h  |   4 +-
 3 files changed, 410 insertions(+), 182 deletions(-)
Signature · 1 line
2.52.0