Skip to content

KVM: arm64: AT + SR accessor fixes

Marc Zyngier kvm kvmarm linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: nv: Fix ATS12 handling of single-stage translationarch/arm64/kvm/at.c+3 -30 replies
2/2KVM: arm64: Fix vcpu_{read,write}_sys_reg() accessorsarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/sys_regs.c+127 -1204 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] KVM: arm64: AT + SR accessor fixes

Volodymyr having reported[1] a couple of rather interesting bugs while running Xen under KVM, here's a couple of patches to plug these issues:

- a fix for ATS12 stopping the walk at S1 under the wrong conditions

- a much larger fix for the vcpu_{read,write}_sys_reg() accessors, fixing the fate of TPIDR*_EL{0,1} and PAR_EL1, and overall becoming much easier to work with

The latter is a pretty large change, but is worth it IMO as it makes everything much more straightforward.

Volodymyr, I'd very much welcome your feedback on those, as despite my best effort, I didn't manage to even boot Debian's packaging of Xen (Grub just refuses to run *anything* after Xen being installed -- I guess it's not tested at all).

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

Marc Zyngier (2):
KVM: arm64: nv: Fix ATS12 handling of single-stage translation
KVM: arm64: Fix vcpu_{read,write}_sys_reg() accessors

 arch/arm64/include/asm/kvm_host.h |   4 +-
 arch/arm64/kvm/at.c               |   6 +-
 arch/arm64/kvm/sys_regs.c         | 243 +++++++++++++++---------------
 3 files changed, 130 insertions(+), 123 deletions(-)
Signature · 1 line
2.39.2