Skip to content

KVM: arm64: FEAT_RASv1p1 support and RAS selection

Marc Zyngier kvm kvmarm linux-arm-kernel 3 versions – Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 11 repliesApplied
  2. v25 patches 7 repliesSuperseded
  3. v17 patches 7 repliesApplied

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6arm64: Add capability denoting FEAT_RASv1p1arch/arm64/kernel/cpufeature.c arch/arm64/tools/cpucaps+25 -01 reply
2/6KVM: arm64: Handle RASv1p1 registersarch/arm64/kvm/sys_regs.c+17 -04 replies
3/6KVM: arm64: Ignore HCR_EL2.FIEN set by L1 guest's EL2arch/arm64/kvm/hyp/vhe/switch.c+4 -11 reply
4/6KVM: arm64: Make ID_AA64PFR0_EL1.RAS writablearch/arm64/kvm/sys_regs.c+0 -11 reply
5/6KVM: arm64: Make ID_AA64PFR1_EL1.RAS_frac writablearch/arm64/kvm/nested.c arch/arm64/kvm/sys_regs.c+29 -151 reply
6/6KVM: arm64: Get rid of ARM64_FEATURE_MASK()arch/arm64/include/asm/sysreg.h arch/arm64/kvm/arm.c arch/arm64/kvm/sys_regs.c +8 more+44 -502 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchCatalin MarinasJoey GoulyCornelia Huck
1/6A-b R-b
2/6R-b R-b
3/6R-b
4/6R-b
5/6R-b
6/6

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

Read the v3 thread

Cover letter [PATCH v3 0/6] KVM: arm64: FEAT_RASv1p1 support and RAS selection

This is the next iteration of this series trying to plug some of our RAS holes (no pun intended...). See [1] for the original series.

The difference with the previous drop is that we don't try to expose a canonical encoding RASv1p1. Which means you must migrate between similar implementations for now.

I've also added a cleanup patch at the end, which can be dropped.

Patches on top of v6.17-rc1.

* From v2 [2]:

- Drop the canonical RASv1p1 advertisement

- Expose ID_AA64PFR1_EL1.RAS_frac as a writable field

- Added an extra patch dropping ARM64_FEATURE_MASK(), as it is both useless and annoying

- Pick RB from Joey (thanks!)

* From v1 [1]:

- Bunch of patches picked by Oliver (thanks!)

- Added missing SYS_ERXMISC{2,3}_EL1 from the list of handled RAS registers

- Added some rationale about the advertising of RASv1p1 (Cornelia)

- Picked AB from Catalin (thanks!)

[1] https://lore.kernel.org/kvmarm/[email protected]
[2] https://lore.kernel.org/kvmarm/[email protected]

Marc Zyngier (6):
arm64: Add capability denoting FEAT_RASv1p1
KVM: arm64: Handle RASv1p1 registers
KVM: arm64: Ignore HCR_EL2.FIEN set by L1 guest's EL2
KVM: arm64: Make ID_AA64PFR0_EL1.RAS writable
KVM: arm64: Make ID_AA64PFR1_EL1.RAS_frac writable
KVM: arm64: Get rid of ARM64_FEATURE_MASK()

 arch/arm64/include/asm/sysreg.h               |  3 -
 arch/arm64/kernel/cpufeature.c                | 24 ++++++
 arch/arm64/kvm/arm.c                          |  8 +-
 arch/arm64/kvm/hyp/vhe/switch.c               |  5 +-
 arch/arm64/kvm/nested.c                       |  3 +-
 arch/arm64/kvm/sys_regs.c                     | 75 +++++++++++++------
 arch/arm64/tools/cpucaps                      |  1 +
 tools/arch/arm64/include/asm/sysreg.h         |  3 -
 .../selftests/kvm/arm64/aarch32_id_regs.c     |  2 +-
 .../selftests/kvm/arm64/debug-exceptions.c    | 12 +--
 .../testing/selftests/kvm/arm64/no-vgic-v3.c  |  4 +-
 .../selftests/kvm/arm64/page_fault_test.c     |  6 +-
 .../testing/selftests/kvm/arm64/set_id_regs.c |  8 +-
 .../selftests/kvm/arm64/vpmu_counter_access.c |  2 +-
 .../selftests/kvm/lib/arm64/processor.c       |  6 +-
 15 files changed, 107 insertions(+), 55 deletions(-)
Signature · 1 line
2.39.2