Skip to content

kvm/arm64: Initial pKVM user ABI

Will Deacon kvm kvmarm linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: Ignore 'kvm-arm.mode=protected' when using VHEDocumentation/admin-guide/kernel-parameters.txt arch/arm64/kernel/cpufeature.c arch/arm64/kvm/arm.c+6 -112 replies
2/4KVM: arm64: Extend comment in has_vhe()arch/arm64/include/asm/virt.h+3 -01 reply
3/4KVM: arm64: Parse reserved-memory node for pkvm guest firmware regionarch/arm64/kvm/Makefile arch/arm64/kvm/pkvm.c+53 -12 replies
4/4KVM: arm64: Introduce KVM_CAP_ARM_PROTECTED_VMDocumentation/virt/kvm/api.rst arch/arm64/include/asm/kvm_host.h arch/arm64/include/uapi/asm/kvm.h +4 more+205 -95 replies

Reviews trailers per patch

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

PatchMark Rutland
1/4A-b
2/4A-b
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] kvm/arm64: Initial pKVM user ABI

Hi folks,

These patches implement support for userspace to request a "Protected VM" using KVM on arm64 when configured in Protected Mode (see the existing kvm-arm.mode=protected command-line option).

The final patch documents the new ABI and its behaviour, so I won't reproduce that here. Please go and have a look there instead!

Note that this series _doesn't_ implement the actual isolation of guest memory; it's more about setting the groundwork for subsequent patches and getting feedback on the user-facing side of things. The final patch is marked RFC accordingly.

Cheers,

Will

Cc Marc Zyngier <[email protected]>
Cc James Morse <[email protected]>
Cc Alexandru Elisei <[email protected]>
Cc Suzuki K Poulose <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Christoffer Dall <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Fuad Tabba <[email protected]>
Cc Quentin Perret <[email protected]>
Cc Sean Christopherson <[email protected]>
Cc David Brazdil <[email protected]>

--->8

Will Deacon (4):
KVM: arm64: Ignore 'kvm-arm.mode=protected' when using VHE
KVM: arm64: Extend comment in has_vhe()
KVM: arm64: Parse reserved-memory node for pkvm guest firmware region
KVM: arm64: Introduce KVM_CAP_ARM_PROTECTED_VM

 .../admin-guide/kernel-parameters.txt         |   1 -
 Documentation/virt/kvm/api.rst                |  69 ++++++++
 arch/arm64/include/asm/kvm_host.h             |  10 ++
 arch/arm64/include/asm/virt.h                 |   3 +
 arch/arm64/include/uapi/asm/kvm.h             |   9 +
 arch/arm64/kernel/cpufeature.c                |  10 +-
 arch/arm64/kvm/Makefile                       |   2 +-
 arch/arm64/kvm/arm.c                          |  24 +--
 arch/arm64/kvm/mmu.c                          |   3 +
 arch/arm64/kvm/pkvm.c                         | 156 ++++++++++++++++++
 include/uapi/linux/kvm.h                      |   1 +
 11 files changed, 267 insertions(+), 21 deletions(-)
 create mode 100644 arch/arm64/kvm/pkvm.c
Signature · 1 line
2.32.0.rc0.204.g9fa02ecfa5-goog