public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] KVM: arm64: Live system register access fixes
@ 2025-08-17 12:19 Marc Zyngier
  2025-08-17 12:19 ` [PATCH v2 1/4] KVM: arm64: Check for SYSREGS_ON_CPU before accessing the 32bit state Marc Zyngier
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marc Zyngier @ 2025-08-17 12:19 UTC (permalink / raw)
  To: kvmarm, kvm, linux-arm-kernel
  Cc: Volodymyr Babchuk, Joey Gouly, Suzuki K Poulose, Oliver Upton,
	Zenghui Yu

This series stems from [1], which outlined some rather bad bugs in the
way we handle live system registers with VHE. As the discussion
progressed, I decided to tighten things a bit, and found a couple more
bugs in the process.

I appreciate this is a bit big for a -rc, but at the same time some of
the issues are rather annoying, and I'd like to make sure we address
these for good.

[1] https://lore.kernel.org/all/20250809144811.2314038-3-maz@kernel.org/

Marc Zyngier (4):
  KVM: arm64: Check for SYSREGS_ON_CPU before accessing the 32bit state
  KVM: arm64: Simplify sysreg access on exception delivery
  KVM: arm64: Fix vcpu_{read,write}_sys_reg() accessors
  KVM: arm64: Remove __vcpu_{read,write}_sys_reg_{from,to}_cpu()

 arch/arm64/include/asm/kvm_host.h | 111 +---------
 arch/arm64/kvm/hyp/exception.c    |  20 +-
 arch/arm64/kvm/sys_regs.c         | 344 ++++++++++++++++++++----------
 3 files changed, 243 insertions(+), 232 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2025-08-17 12:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-17 12:19 [PATCH v2 0/4] KVM: arm64: Live system register access fixes Marc Zyngier
2025-08-17 12:19 ` [PATCH v2 1/4] KVM: arm64: Check for SYSREGS_ON_CPU before accessing the 32bit state Marc Zyngier
2025-08-17 12:19 ` [PATCH v2 2/4] KVM: arm64: Simplify sysreg access on exception delivery Marc Zyngier
2025-08-17 12:19 ` [PATCH v2 3/4] KVM: arm64: Fix vcpu_{read,write}_sys_reg() accessors Marc Zyngier
2025-08-17 12:19 ` [PATCH v2 4/4] KVM: arm64: Remove __vcpu_{read,write}_sys_reg_{from,to}_cpu() Marc Zyngier

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