Skip to content

KVM: arm64: FF-A proxy for pKVM

Will Deacon kvmarm linux-arm-kernel 2 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 Latest10 patches 3 repliesApplied
  2. v210 patches 5 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/10KVM: arm64: Block unsafe FF-A calls from the hostarch/arm64/kvm/hyp/include/nvhe/ffa.h arch/arm64/kvm/hyp/nvhe/Makefile arch/arm64/kvm/hyp/nvhe/ffa.c +1 more+139 -10 replies
2/10KVM: arm64: Probe FF-A version and host/hyp partition ID during initarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c arch/arm64/kvm/hyp/include/nvhe/ffa.h +2 more+38 -00 replies
3/10KVM: arm64: Allocate pages for hypervisor FF-A mailboxesarch/arm64/include/asm/kvm_pkvm.h arch/arm64/kvm/hyp/include/nvhe/ffa.h arch/arm64/kvm/hyp/nvhe/ffa.c +2 more+40 -30 replies
4/10KVM: arm64: Handle FFA_RXTX_MAP and FFA_RXTX_UNMAP calls from the hostarch/arm64/kvm/hyp/nvhe/ffa.c include/linux/arm_ffa.h+196 -00 replies
5/10KVM: arm64: Add FF-A helpers to share/unshare memory with secure worldarch/arm64/kvm/hyp/include/nvhe/mem_protect.h arch/arm64/kvm/hyp/nvhe/mem_protect.c+71 -00 replies
6/10KVM: arm64: Handle FFA_MEM_SHARE calls from the hostarch/arm64/kvm/hyp/nvhe/ffa.c+155 -00 replies
7/10KVM: arm64: Handle FFA_MEM_RECLAIM calls from the hostarch/arm64/kvm/hyp/nvhe/ffa.c+79 -00 replies
8/10KVM: arm64: Handle FFA_MEM_LEND calls from the hostarch/arm64/kvm/hyp/nvhe/ffa.c+15 -71 reply
9/10KVM: arm64: Handle FFA_FEATURES call from the hostarch/arm64/kvm/hyp/nvhe/ffa.c+41 -40 replies
10/10KVM: arm64: pkvm: Add support for fragmented FF-A descriptorsarch/arm64/include/asm/kvm_pkvm.h arch/arm64/kvm/hyp/nvhe/ffa.c+162 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/10] KVM: arm64: FF-A proxy for pKVM

Hi all,

This is version three of the pKVM FF-A proxy series previously posted here:

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

Changes since v2 include:

* Rename 'spmd_' functions per suggestion from Oliver
* Add some more comments
* Rebase onto 6.4-rc3

Cheers,

Will

Cc Quentin Perret <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>
Cc James Morse <[email protected]>
Cc Alexandru Elisei <[email protected]>
Cc Suzuki K Poulose <[email protected]>
Cc Sudeep Holla <[email protected]>
Cc Sebastian Ene <[email protected]>
Cc Fuad Tabba <[email protected]>

--->8

Fuad Tabba (1):
KVM: arm64: Handle FFA_FEATURES call from the host

Quentin Perret (1):
KVM: arm64: pkvm: Add support for fragmented FF-A descriptors

Will Deacon (8):
KVM: arm64: Block unsafe FF-A calls from the host
KVM: arm64: Probe FF-A version and host/hyp partition ID during init
KVM: arm64: Allocate pages for hypervisor FF-A mailboxes
KVM: arm64: Handle FFA_RXTX_MAP and FFA_RXTX_UNMAP calls from the host
KVM: arm64: Add FF-A helpers to share/unshare memory with secure world
KVM: arm64: Handle FFA_MEM_SHARE calls from the host
KVM: arm64: Handle FFA_MEM_RECLAIM calls from the host
KVM: arm64: Handle FFA_MEM_LEND calls from the host

 arch/arm64/include/asm/kvm_host.h             |   1 +
 arch/arm64/include/asm/kvm_pkvm.h             |  21 +
 arch/arm64/kvm/arm.c                          |   1 +
 arch/arm64/kvm/hyp/include/nvhe/ffa.h         |  17 +
 arch/arm64/kvm/hyp/include/nvhe/mem_protect.h |   3 +
 arch/arm64/kvm/hyp/nvhe/Makefile              |   2 +-
 arch/arm64/kvm/hyp/nvhe/ffa.c                 | 762 ++++++++++++++++++
 arch/arm64/kvm/hyp/nvhe/hyp-main.c            |   3 +
 arch/arm64/kvm/hyp/nvhe/mem_protect.c         |  68 ++
 arch/arm64/kvm/hyp/nvhe/setup.c               |  11 +
 arch/arm64/kvm/pkvm.c                         |   1 +
 include/linux/arm_ffa.h                       |   8 +
 12 files changed, 897 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm64/kvm/hyp/include/nvhe/ffa.h
 create mode 100644 arch/arm64/kvm/hyp/nvhe/ffa.c
Signature · 1 line
2.40.1.698.g37aff9b760-goog