Skip to content

KVM: arm64: Fixes for guest CPU feature trapping and enabling

Fuad Tabba kvmarm linux-arm-kernel 6 versions – Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest9 patches 7 repliesApplied
  2. v59 patches 17 repliesSuperseded
  3. v48 patches 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v38 patches2 repliesSuperseded
v25 patches5 repliesSuperseded
v18 patches12 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/9KVM: arm64: Fix Trace Buffer trapping for protected VMsarch/arm64/kvm/hyp/nvhe/pkvm.c+1 -10 replies
2/9KVM: arm64: Fix Trace Buffer trap polarity for protected VMsarch/arm64/kvm/hyp/nvhe/pkvm.c+1 -10 replies
3/9KVM: arm64: Fix MTE flag initialization for protected VMsarch/arm64/kvm/hyp/nvhe/pkvm.c+3 -30 replies
4/9KVM: arm64: Introduce helper to calculate fault IPA offsetarch/arm64/include/asm/kvm_arm.h arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c arch/arm64/kvm/inject_fault.c +1 more+6 -40 replies
5/9KVM: arm64: Include VM type when checking VM capabilities in pKVMarch/arm64/include/asm/kvm_pkvm.h arch/arm64/kvm/arm.c arch/arm64/kvm/hyp/nvhe/pkvm.c+13 -110 replies
6/9KVM: arm64: Do not allow KVM_CAP_ARM_MTE for any guest in pKVMarch/arm64/include/asm/kvm_pkvm.h+2 -00 replies
7/9KVM: arm64: Track KVM IOCTLs and their associated KVM capsarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c include/uapi/linux/kvm.h+45 -00 replies
8/9KVM: arm64: Check whether a VM IOCTL is allowed in pKVMarch/arm64/include/asm/kvm_pkvm.h arch/arm64/kvm/arm.c+24 -06 replies
9/9KVM: arm64: Prevent host from managing timer offsets for protected VMsarch/arm64/kvm/arch_timer.c+13 -50 replies

Reviews trailers per patch

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

PatchSuzuki K PouloseBen Horgan
1/9R-b
2/9R-b
3/9R-b
4/9
5/9
6/9
7/9
8/9
9/9

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

Read the v6 thread

Cover letter [PATCH v6 0/9] KVM: arm64: Fixes for guest CPU feature trapping and enabling

Hi,

This series contains several fixes for guest feature trapping and enabling in pKVM, as well as a bit of tidying up.

Changes from v6 [1]:
- Fixes to the patch that tracks KVM IOCTLs and their associated KVM caps. Move static header data and function definitions to arm.c.
- Introduce a capability KVM_CAP_ARM_BASIC instead of KVM_CAP_CORE, since it is ARM-specific and that it only checks basic ARM ioctls.
- Tidying up code and commit messages.
- Based on Linux 6.18

Cheers,
/fuad

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

Fuad Tabba (9):
KVM: arm64: Fix Trace Buffer trapping for protected VMs
KVM: arm64: Fix Trace Buffer trap polarity for protected VMs
KVM: arm64: Fix MTE flag initialization for protected VMs
KVM: arm64: Introduce helper to calculate fault IPA offset
KVM: arm64: Include VM type when checking VM capabilities in pKVM
KVM: arm64: Do not allow KVM_CAP_ARM_MTE for any guest in pKVM
KVM: arm64: Track KVM IOCTLs and their associated KVM caps
KVM: arm64: Check whether a VM IOCTL is allowed in pKVM
KVM: arm64: Prevent host from managing timer offsets for protected VMs

 arch/arm64/include/asm/kvm_arm.h         |  2 +
 arch/arm64/include/asm/kvm_host.h        |  2 +
 arch/arm64/include/asm/kvm_pkvm.h        | 33 ++++++++++++++--
 arch/arm64/kvm/arch_timer.c              | 18 ++++++---
 arch/arm64/kvm/arm.c                     | 49 +++++++++++++++++++++++-
 arch/arm64/kvm/hyp/nvhe/pkvm.c           | 18 ++++-----
 arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c |  2 +-
 arch/arm64/kvm/inject_fault.c            |  2 +-
 arch/arm64/kvm/mmu.c                     |  4 +-
 include/uapi/linux/kvm.h                 |  1 +
 10 files changed, 107 insertions(+), 24 deletions(-)

base-commit: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449

Signature · 1 line
2.52.0.223.gf5cc29aaa4-goog