mbox series

[v3,00/10] KVM: arm64: FF-A proxy for pKVM

Message ID 20230523101828.7328-1-will@kernel.org (mailing list archive)
Headers show
Series KVM: arm64: FF-A proxy for pKVM | expand

Message

Will Deacon May 23, 2023, 10:18 a.m. UTC
Hi all,

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

v1: https://lore.kernel.org/r/20221116170335.2341003-1-qperret@google.com
v2: https://lore.kernel.org/r/20230419122051.1341-1-will@kernel.org

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 <qperret@google.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: James Morse <james.morse@arm.com>
Cc: Alexandru Elisei <alexandru.elisei@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Sebastian Ene <sebastianene@google.com>
Cc: Fuad Tabba <tabba@google.com>
Cc: kvmarm@lists.linux.dev
Cc: kernel-team@android.com

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

Comments

Oliver Upton June 7, 2023, 5:35 a.m. UTC | #1
On Tue, 23 May 2023 11:18:17 +0100, Will Deacon wrote:
> This is version three of the pKVM FF-A proxy series previously posted
> here:
> 
> v1: https://lore.kernel.org/r/20221116170335.2341003-1-qperret@google.com
> v2: https://lore.kernel.org/r/20230419122051.1341-1-will@kernel.org
> 
> Changes since v2 include:
> 
> [...]

Applied to kvmarm/next, thanks!

[01/10] KVM: arm64: Block unsafe FF-A calls from the host
        https://git.kernel.org/kvmarm/kvmarm/c/048be5fea43d
[02/10] KVM: arm64: Probe FF-A version and host/hyp partition ID during init
        https://git.kernel.org/kvmarm/kvmarm/c/12bdce4f4119
[03/10] KVM: arm64: Allocate pages for hypervisor FF-A mailboxes
        https://git.kernel.org/kvmarm/kvmarm/c/bc3888a0f4e9
[04/10] KVM: arm64: Handle FFA_RXTX_MAP and FFA_RXTX_UNMAP calls from the host
        https://git.kernel.org/kvmarm/kvmarm/c/9d0c6a9af9e3
[05/10] KVM: arm64: Add FF-A helpers to share/unshare memory with secure world
        https://git.kernel.org/kvmarm/kvmarm/c/f9112eade788
[06/10] KVM: arm64: Handle FFA_MEM_SHARE calls from the host
        https://git.kernel.org/kvmarm/kvmarm/c/436090001776
[07/10] KVM: arm64: Handle FFA_MEM_RECLAIM calls from the host
        https://git.kernel.org/kvmarm/kvmarm/c/0e3bcb49c135
[08/10] KVM: arm64: Handle FFA_MEM_LEND calls from the host
        https://git.kernel.org/kvmarm/kvmarm/c/634d90cf0ac6
[09/10] KVM: arm64: Handle FFA_FEATURES call from the host
        https://git.kernel.org/kvmarm/kvmarm/c/20936cd11479
[10/10] KVM: arm64: pkvm: Add support for fragmented FF-A descriptors
        https://git.kernel.org/kvmarm/kvmarm/c/0a9f15fd5674

--
Best,
Oliver
Will Deacon June 8, 2023, 5:28 p.m. UTC | #2
On Wed, Jun 07, 2023 at 05:35:12AM +0000, Oliver Upton wrote:
> On Tue, 23 May 2023 11:18:17 +0100, Will Deacon wrote:
> > This is version three of the pKVM FF-A proxy series previously posted
> > here:
> > 
> > v1: https://lore.kernel.org/r/20221116170335.2341003-1-qperret@google.com
> > v2: https://lore.kernel.org/r/20230419122051.1341-1-will@kernel.org
> > 
> > Changes since v2 include:
> > 
> > [...]
> 
> Applied to kvmarm/next, thanks!

Thank you!

Will