[PATCH v2 0/4] KVM: arm64: Live system register access fixes
Marc Zyngier
maz at kernel.org
Sun Aug 17 05:19:22 PDT 2025
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
More information about the linux-arm-kernel
mailing list