[PATCH 0/2] KVM: arm64: AT + SR accessor fixes
Marc Zyngier
maz at kernel.org
Sat Aug 9 07:48:09 PDT 2025
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/20250806141707.3479194-1-volodymyr_babchuk@epam.com
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(-)
--
2.39.2
More information about the linux-arm-kernel
mailing list