Skip to content

KVM: arm64: pKVM host proxy FF-A fixes

Sebastian Ene kvmarm linux-arm-kernel lkml 3 versions – Applied

Status from this message: Applied to kvmarm/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesApplied
  2. v24 patches 8 repliesSuperseded
  3. v14 patches 7 repliesSuperseded

Changes in v3 from the cover letter

* small fixes on the commit messages
* applied the Review-by tags from Sudeep. Thank you Sudeep !

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: Trap FFA_VERSION host call in pKVMarch/arm64/kvm/hyp/nvhe/ffa.c+90 -300 replies
2/4KVM: arm64: Add support for FFA_PARTITION_INFO_GETarch/arm64/kvm/hyp/nvhe/ffa.c include/linux/arm_ffa.h+55 -00 replies
3/4KVM: arm64: Update the identification range for the FF-A smcsarch/arm64/kvm/hyp/include/nvhe/ffa.h+1 -10 replies
4/4KVM: arm64: Use FF-A 1.1 with pKVMarch/arm64/kvm/hyp/nvhe/ffa.c+8 -40 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSudeep HollaWill DeaconMarc Zyngier
SeriesA-b
1/4R-b T-b
2/4R-b T-b
3/4R-b T-b A-b
4/4R-b T-b

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 v3 thread

Cover letter [PATCH v3 0/4] KVM: arm64: pKVM host proxy FF-A fixes

Hello,

This series contains some small fixes for the host pKVM proxy code. I included some of the patches that I already sent on the list as part of this series to make it easier to keep track of them.

I verified the functionality with OPTEE as a TEE-OS.

Changelog:

v2 -> v3:

* small fixes on the commit messages
* applied the Review-by tags from Sudeep. Thank you Sudeep !

v1 -> v2:

* applied the feedback received from Will on the FFA_VERSION patch:
The spec requires that no other calls to be issued prior to the FFA version negotiation and the current change reflects this. After the version negotiation phase is complete with Trustzone we will just return the hypervisor version.

* corrected some mistakes on the FFA_PARTITION_INFO_GET patch:
- don't trim the number of bytes copied from the hypervisor buffer
- introduce FFA_1_0_PARTITON_INFO_SZ definition
- simplify the logic when the input flag is specified

* collected the Ack from Will and embbeded it in the commit - Thanks Will !

v2:
https://lore.kernel.org/all/[email protected]/

v1:

* previously posted FFA_PARTITION_INFO_GET patch here:
https://lore.kernel.org/kvmarm/[email protected]/
-> minor changes from the previous version, look for the current
ffa_version in the host_buffer structure

* previously posted "Fix the identification range for the FF-A smcs" here:
https://lore.kernel.org/kvmarm/[email protected]/

Thank you,
Sebastian

Sebastian Ene (4):
KVM: arm64: Trap FFA_VERSION host call in pKVM
KVM: arm64: Add support for FFA_PARTITION_INFO_GET
KVM: arm64: Update the identification range for the FF-A smcs
KVM: arm64: Use FF-A 1.1 with pKVM

 arch/arm64/kvm/hyp/include/nvhe/ffa.h |   2 +-
 arch/arm64/kvm/hyp/nvhe/ffa.c         | 180 +++++++++++++++++++++-----
 include/linux/arm_ffa.h               |   3 +
 3 files changed, 152 insertions(+), 33 deletions(-)
Signature · 1 line
2.45.2.505.gda0bf45e8d-goog