Skip to content

KVM: arm64: Fixes to handling of restricted registers for protected VMs

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

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v14 patches 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Handle AIDR_EL1 and REVIDR_EL1 in host for protected VMsarch/arm64/kvm/hyp/nvhe/sys_regs.c+4 -00 replies
2/3KVM: arm64: Sync protected guest VBAR_EL1 on injecting an undef exceptionarch/arm64/kvm/hyp/nvhe/sys_regs.c+1 -00 replies
3/3arm64: vgic-v2: Fix guest endianness check in hVHE modearch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c+1 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] KVM: arm64: Fixes to handling of restricted registers for protected VMs

This patch series mainly fixes issues we've encountered in pKVM (in downstream Android code), related to the handling of protected VM access to restricted registers and injecting undefined exceptions into a protected guest.

The last patch in this series isn't pKVM specific, but a fix to the vgic-v2 code encountered while fixing the issues in this series. The issue it fixes was indirectly introduced into the code with hVHE.

Changes from v1 [1]:
- Dropped the refactoring patch.
- Added Reported-by tags.

Based on Linux 6.16.

Cheers,
/fuad

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

Fuad Tabba (3):
KVM: arm64: Handle AIDR_EL1 and REVIDR_EL1 in host for protected VMs
KVM: arm64: Sync protected guest VBAR_EL1 on injecting an undef
exception
arm64: vgic-v2: Fix guest endianness check in hVHE mode

 arch/arm64/kvm/hyp/nvhe/sys_regs.c       | 5 +++++
 arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

base-commit: 038d61fd642278bab63ee8ef722c50d10ab01e8f

Signature · 1 line
2.50.1.565.gc32cd1483b-goog