Linux KVM/arm64 development list
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: Fixes for NV+SVE
@ 2025-09-26 19:41 Oliver Upton
  2025-09-26 19:41 ` [PATCH 1/2] KVM: arm64: nv: Don't treat ZCR_EL2 as a 'mapped' register Oliver Upton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oliver Upton @ 2025-09-26 19:41 UTC (permalink / raw)
  To: kvmarm
  Cc: Marc Zyngier, Joey Gouly, Suzuki K Poulose, Zenghui Yu, Jan Kotas,
	Oliver Upton

After staring at the ZCR_EL2 handling for the issue Jan reported I
also spotted an ugly preemption bug because ZCR_EL2 residence is *very*
different from the other sysregs.

We could definitely get away with loading ZCR_ELx on the CPU at
vcpu_load() but I'd rather not given the amount of special treatment
that we need to do for it already.

In addition to that, I've taken the liberty of forging Marc's authorship
and SOB on the SVE exception fix, figured he wont mind :-)

Applies to kvmarm-6.18, tested with QEMU-TCG (only implementation >128
bit) with L0: VL=512, L1: VL=256, and L2: VL=128.

Marc Zyngier (1):
  KVM: arm64: nv: Don't advance PC when pending an SVE exception

Oliver Upton (1):
  KVM: arm64: nv: Don't treat ZCR_EL2 as a 'mapped' register

 arch/arm64/kvm/sys_regs.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)


base-commit: 10fd0285305d0b48e8a3bf15d4f17fc4f3d68cb6
-- 
2.39.5


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

end of thread, other threads:[~2025-09-27 11:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-26 19:41 [PATCH 0/2] KVM: arm64: Fixes for NV+SVE Oliver Upton
2025-09-26 19:41 ` [PATCH 1/2] KVM: arm64: nv: Don't treat ZCR_EL2 as a 'mapped' register Oliver Upton
2025-09-26 19:41 ` [PATCH 2/2] KVM: arm64: nv: Don't advance PC when pending an SVE exception Oliver Upton
2025-09-27 11:29 ` [PATCH 0/2] KVM: arm64: Fixes for NV+SVE Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox