Skip to content

KVM: arm64: Separate the hyp FF-A buffers init from the host

Sebastian Ene kvmarm linux-arm-kernel lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 9 repliesIn review
  2. v33 patches 0 repliesSuperseded
  3. v24 patches 21 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches2 repliesSuperseded

v3 -> this version from the cover letter

- moved the definition of PARTITION_INFO_GET_RETURN_COUNT_ONLY from the driver code to the arm_ffa header and dropped the definition from the last patch.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Use the static initializer for the version lockarch/arm64/kvm/hyp/nvhe/ffa.c+1 -21 reply
2/3firmware: arm_ffa: Move the ffa_to_linux definition to the ffa headerdrivers/firmware/arm_ffa/driver.c include/linux/arm_ffa.h+27 -261 reply
3/3KVM: arm64: Release the ownership of the hyp rx buffer to Trustzonearch/arm64/kvm/hyp/nvhe/ffa.c+6 -37 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchWill DeaconSudeep HollaQuentin Perret
1/3A-b R-b
2/3R-b R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/3] KVM: arm64: Separate the hyp FF-A buffers init from the host

Hello,

This moves the initialization of the hypervisor FF-A buffers away from the host FF-A map calling path. If the hypervisor cannot map the buffers with Trustzone, it rejects any FF-A call when it runs under protected mode.
Other than that it moves the definitions of the ffa_to_linux_err map from the arm_ffa driver to the ffa header so that the hyp code can make use of it.

*** Changelog ***

v3 -> this version:

- moved the definition of PARTITION_INFO_GET_RETURN_COUNT_ONLY from the driver code to the arm_ffa header and dropped the definition from the last patch.

v2 -> v3:

- dropped the "Map the hypervisor FF-A buffers on ffa init" patch
- added ack & reviewed-by tags
- don't release the ownership of the RX buffer if the flag from FFA_GET_PARTITION is (1)

v1 -> v2:

Split the patch that maps the ff-a buffers of ffa init and introduce "Move the ffa_to_linux definition to the ffa header".

Thanks,

Sebastian Ene (3):
KVM: arm64: Use the static initializer for the version lock
firmware: arm_ffa: Move the ffa_to_linux definition to the ffa header
KVM: arm64: Release the ownership of the hyp rx buffer to Trustzone

 arch/arm64/kvm/hyp/nvhe/ffa.c     | 12 +++++++-----
 drivers/firmware/arm_ffa/driver.c | 26 --------------------------
 include/linux/arm_ffa.h           | 27 +++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 31 deletions(-)
Signature · 1 line
2.49.0.395.g12beb8f557-goog