arm64: KVM: Backport VHE-only boot fixes
Status from this message: Queued the series for 6.6, thanks. I also picked up the follow-up
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest6 patches 2 repliesApplied
- v26 patches 2 repliesSuperseded
- v15 patches 10 repliesSuperseded
Changes in v3 from the cover letter
- Added Signed-off-by: Colton Lewis <[email protected]> to all commits.
- Added explicit '[ Backport: ... ]' conflict resolution notes indicating why conflicts occurred and how they were resolved (Patches 4, 5, and 6, including Patch 4 where the conflict was trivial).
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | arm64: sysreg: Add layout for ID_AA64MMFR4_EL1arch/ | +37 | 0 replies | |
| 2/6 | arm64: Treat HCR_EL2.E2H as RES1 when ID_AA64MMFR4_EL1.E2H0 is negativearch/ | +15 | 0 replies | |
| 3/6 | arm64: Fix early handling of FEAT_E2H0 not being implementedarch/ | +16 | 0 replies | |
| 4/6 | KVM: arm64: Initialize HCR_EL2.E2H earlyarch/ arch/ arch/ | +29 | 0 replies | |
| 5/6 | KVM: arm64: Initialize SCTLR_EL1 in __kvm_hyp_init_cpu()arch/ arch/ arch/ +1 more | +5 | 0 replies | |
| 6/6 | arm64: Revamp HCR_EL2.E2H RES1 detectionarch/ | +32 | 0 replies |
Reviews trailers per patch
5 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Suzuki K Poulose | Catalin Marinas | Miguel Luis | Leo Yan | Mark Rutland | Oliver Upton | Jan Kotas |
|---|---|---|---|---|---|---|---|
| 1/6 | R-b | R-b | R-b | ||||
| 2/6 | R-b | R-b | |||||
| 3/6 | A-b | ||||||
| 4/6 | |||||||
| 5/6 | R-b | ||||||
| 6/6 | A-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 7 reviewers.
Cover letter [PATCH 6.6 v3 0/6] arm64: KVM: Backport VHE-only boot fixes
Architectural updates retroactively made FEAT_E2H0 optional, meaning hardware can implement FEAT_VHE without FEAT_E2H0. On such CPUs, HCR_EL2.E2H can reset to an unknown state and must be initialized early so later code can reliably detect whether E2H mode is active.
Without these fixes, booting 6.6.y as a guest under KVM nested virtualization will hang at boot.
This series targets 6.6.y specifically because these patches are all present in 6.12.y and applying these patches to 6.1.y and presumably older kernels has more conflicts and results in other issues booting as a guest under nested virtualization. More work is needed to enable that.
Changes in v3:
- Added Signed-off-by: Colton Lewis <[email protected]> to all commits.
- Added explicit '[ Backport: ... ]' conflict resolution notes indicating why conflicts occurred and how they were resolved (Patches 4, 5, and 6, including Patch 4 where the conflict was trivial).
v2:
https://lore.kernel.org/kvmarm/[email protected]/
v1:
https://lore.kernel.org/kvmarm/[email protected]/
Ahmed Genidi (1):
KVM: arm64: Initialize SCTLR_EL1 in __kvm_hyp_init_cpu()
Marc Zyngier (4):
arm64: sysreg: Add layout for ID_AA64MMFR4_EL1
arm64: Treat HCR_EL2.E2H as RES1 when ID_AA64MMFR4_EL1.E2H0 is
negative
arm64: Fix early handling of FEAT_E2H0 not being implemented
arm64: Revamp HCR_EL2.E2H RES1 detection
Mark Rutland (1):
KVM: arm64: Initialize HCR_EL2.E2H early
arch/arm64/include/asm/el2_setup.h | 56 ++++++++++++++++++++++++++-- arch/arm64/kernel/head.S | 20 ++++------ arch/arm64/kvm/hyp/nvhe/hyp-init.S | 3 +- arch/arm64/kvm/hyp/nvhe/psci-relay.c | 3 ++ arch/arm64/tools/sysreg | 37 ++++++++++++++++++ 5 files changed, 101 insertions(+), 18 deletions(-)
base-commit: da47cbc254661aa66d61ef061485a7080305c4be
Signature · 1 line
2.55.0.795.g602f6c329a-goog