Skip to content

KVM: arm64: Live system register access fixes

Marc Zyngier kvm kvmarm linux-arm-kernel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v11 patch 1 replyApplied

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: Check for SYSREGS_ON_CPU before accessing the 32bit statearch/arm64/kvm/hyp/exception.c+2 -20 replies
2/4KVM: arm64: Simplify sysreg access on exception deliveryarch/arm64/kvm/hyp/exception.c+4 -120 replies
3/4KVM: arm64: Fix vcpu_{read,write}_sys_reg() accessorsarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/sys_regs.c+162 -1120 replies
4/4KVM: arm64: Remove __vcpu_{read,write}_sys_reg_{from,to}_cpu()arch/arm64/include/asm/kvm_host.h arch/arm64/kvm/sys_regs.c+80 -1110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] KVM: arm64: Live system register access fixes

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/[email protected]/

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(-)
Signature · 1 line
2.39.2