Skip to content

arm64/sme: Fix SMPRI_EL1 traps for KVM guests

Mark Brown kvmarm linux-arm-kernel stable 2 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. v2 Latest2 patches 4 repliesApplied
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Rebase onto v6.1-rc2
- Also manage TPIDR2 fine grained traps for VHE mode.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2arm64: booting: Document our requirements for fine grained traps with SMEDocumentation/arm64/booting.rst+8 -00 replies
2/2KVM: arm64: Trap access to SMPRI_EL1 and TPIDR2 in VHE modearch/arm64/kvm/hyp/vhe/switch.c+24 -23 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchOliver UptonCatalin MarinasMark Brown
1/2R-b A-b
2/2R-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 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] arm64/sme: Fix SMPRI_EL1 traps for KVM guests

When adding support for SME I missed management of traps for SMPRI_EL1 in KVM guests, and also the need to manage TPIDR2_EL0 fine grained traps for EL1. This series adds that management, and also updates the documentation to help avoid such issues in future.

This was noticed due to Vincent Donnefort noticing that qemu has implemented support for SME virtualisation but not fine grained traps which was causing problems for qemu in nVHE mode since that already used fine grained traps with SME, the FGT registers are not implemented and UNDEF. As a result of this change VHE will also be affected so a separate series "KVM: arm: Refuse to enable KVM on systems with SME but not FGT" has been sent which will ensure we don't run on such systems though initial review suggests that this will likely be treated as a qemu documentation issue.

v2:
- Rebase onto v6.1-rc2
- Also manage TPIDR2 fine grained traps for VHE mode.

Mark Brown (2):
arm64: booting: Document our requirements for fine grained traps with
SME
KVM: arm64: Trap access to SMPRI_EL1 and TPIDR2 in VHE mode

 Documentation/arm64/booting.rst |  8 ++++++++
 arch/arm64/kvm/hyp/vhe/switch.c | 26 ++++++++++++++++++++++++--
 2 files changed, 32 insertions(+), 2 deletions(-)

base-commit: 30a0b95b1335e12efef89dd78518ed3e4a71a763

Signature · 1 line
2.30.2