linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: AT + SR accessor fixes
@ 2025-08-09 14:48 Marc Zyngier
  2025-08-09 14:48 ` [PATCH 1/2] KVM: arm64: nv: Fix ATS12 handling of single-stage translation Marc Zyngier
  2025-08-09 14:48 ` [PATCH 2/2] KVM: arm64: Fix vcpu_{read,write}_sys_reg() accessors Marc Zyngier
  0 siblings, 2 replies; 7+ messages in thread
From: Marc Zyngier @ 2025-08-09 14:48 UTC (permalink / raw)
  To: kvmarm, kvm, linux-arm-kernel
  Cc: Volodymyr Babchuk, Joey Gouly, Suzuki K Poulose, Oliver Upton,
	Zenghui Yu

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-08-15 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-09 14:48 [PATCH 0/2] KVM: arm64: AT + SR accessor fixes Marc Zyngier
2025-08-09 14:48 ` [PATCH 1/2] KVM: arm64: nv: Fix ATS12 handling of single-stage translation Marc Zyngier
2025-08-09 14:48 ` [PATCH 2/2] KVM: arm64: Fix vcpu_{read,write}_sys_reg() accessors Marc Zyngier
2025-08-12 20:23   ` Oliver Upton
2025-08-13  6:54     ` Marc Zyngier
2025-08-14 16:16     ` Marc Zyngier
2025-08-15 18:56       ` Oliver Upton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).