Skip to content

KVM: arm64: Fix initializing HCRX_EL2 and other traps in pKVM

Fuad Tabba kvmarm linux-arm-kernel 3 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. v3 Latest4 patches 1 replyApplied
  2. v24 patches 13 repliesSuperseded
  3. v13 patches 11 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: Factor out setting HCRX_EL2 traps into separate functionarch/arm64/include/asm/kvm_emulate.h arch/arm64/kvm/sys_regs.c+25 -190 replies
2/4KVM: arm64: Initialize HCRX_EL2 traps in pKVMarch/arm64/kvm/hyp/nvhe/pkvm.c+7 -10 replies
3/4KVM: arm64: Factor out pKVM hyp vcpu creation to separate functionarch/arm64/kvm/pkvm.c+22 -260 replies
4/4KVM: arm64: Create each pKVM hyp vcpu after its corresponding host vcpuarch/arm64/include/asm/kvm_host.h arch/arm64/include/asm/kvm_pkvm.h arch/arm64/kvm/arm.c +3 more+53 -420 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMarc ZyngierWill Deacon
1/4R-b
2/4R-b
3/4R-b A-b
4/4R-b A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/4] KVM: arm64: Fix initializing HCRX_EL2 and other traps in pKVM

Changes since v2 [1]:
- Remove WRITE_ONCE when setting hyp handle (Quentin)
- Rebase on Linux 6.14-rc6

For context, please refer to v1 [2].

Cheers,
/fuad

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

Fuad Tabba (4):
KVM: arm64: Factor out setting HCRX_EL2 traps into separate function
KVM: arm64: Initialize HCRX_EL2 traps in pKVM
KVM: arm64: Factor out pKVM hyp vcpu creation to separate function
KVM: arm64: Create each pKVM hyp vcpu after its corresponding host
vcpu

 arch/arm64/include/asm/kvm_emulate.h   | 24 +++++++++
 arch/arm64/include/asm/kvm_host.h      |  2 +
 arch/arm64/include/asm/kvm_pkvm.h      |  1 +
 arch/arm64/kvm/arm.c                   |  4 ++
 arch/arm64/kvm/hyp/include/nvhe/pkvm.h |  6 ---
 arch/arm64/kvm/hyp/nvhe/pkvm.c         | 62 ++++++++++++++---------
 arch/arm64/kvm/pkvm.c                  | 70 +++++++++++++-------------
 arch/arm64/kvm/sys_regs.c              | 20 +-------
 8 files changed, 104 insertions(+), 85 deletions(-)

base-commit: 80e54e84911a923c40d7bee33a34c1b4be148d7a

Signature · 1 line
2.49.0.rc1.451.g8f38331e32-goog