Skip to content

arm64: Early system register initialization fixes

Wei-Lin Chang stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Initialize HCR_EL2.E2H earlyarch/arm64/include/asm/el2_setup.h arch/arm64/kernel/head.S arch/arm64/kvm/hyp/nvhe/hyp-init.S+34 -190 replies
2/3KVM: arm64: Initialize SCTLR_EL1 in __kvm_hyp_init_cpu()arch/arm64/include/asm/el2_setup.h arch/arm64/kernel/head.S arch/arm64/kvm/hyp/nvhe/hyp-init.S +1 more+5 -80 replies
3/3arm64: Revamp HCR_EL2.E2H RES1 detectionarch/arm64/include/asm/el2_setup.h+32 -60 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchLeo YanMark RutlandCatalin MarinasOliver UptonJan Kotas
1/3
2/3R-b
3/3A-b A-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 6.12.y 0/3] arm64: Early system register initialization fixes

Hi,

This series is a v6.12-only backport (based on v6.12.62) of fixes for system register initialization issues affecting protected KVM on arm64. This affects some contemporary and upcoming hardware which will run the v6.12.y stable kernel, or something derived from it, such as the Android common kernel.

The FEAT_E2H0 patches fix code introduced after v6.6, and so only need to be backported to v6.12.

The SCTLR_EL1 patch fixes code introduced in v5.11, but practically speaking only affects recent hardware which is unlikely to run something older than v6.12.

Note: Marc Zyngier performed the initial backport, which I have rebased and tested, hence both of our sign-offs being added to the tags from the upstream commits.

I have tested the backport and observed they solve the problems as expected.

Ahmed Genidi (1):
KVM: arm64: Initialize SCTLR_EL1 in __kvm_hyp_init_cpu()

Marc Zyngier (1):
arm64: Revamp HCR_EL2.E2H RES1 detection

Mark Rutland (1):
KVM: arm64: Initialize HCR_EL2.E2H early

 arch/arm64/include/asm/el2_setup.h   | 57 +++++++++++++++++++++++++---
 arch/arm64/kernel/head.S             | 22 ++---------
 arch/arm64/kvm/hyp/nvhe/hyp-init.S   | 10 +++--
 arch/arm64/kvm/hyp/nvhe/psci-relay.c |  3 ++
 4 files changed, 65 insertions(+), 27 deletions(-)
Signature · 1 line
2.43.0