Skip to content

KVM: arm64: Fix AT instruction handling

Andre Przywara stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/22 patches 1 replyIn review
  2. v2 posting 1/23 patches 1 replySuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- (Re-)adding Marc's review tags from upstream. Differences to the original patches are trivial for 2/2, and straight-forward for 1/2.
- Fix spelling of vaxorcism
-------------

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Add kvm_extable for vaxorcism codearch/arm64/include/asm/kvm_asm.h arch/arm64/kernel/vmlinux.lds.S arch/arm64/kvm/hyp/entry.S +2 more+94 -260 replies
2/2KVM: arm64: Survive synchronous exceptions caused by AT instructionsarch/arm64/include/asm/kvm_asm.h arch/arm64/kvm/hyp/hyp-entry.S arch/arm64/kvm/hyp/switch.c+42 -80 replies

Reviews trailers per patch

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

PatchMarc Zyngier
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH stable v5.8 v2 0/2] KVM: arm64: Fix AT instruction handling

Changes from v1:
- (Re-)adding Marc's review tags from upstream. Differences to the original patches are trivial for 2/2, and straight-forward for 1/2.
- Fix spelling of vaxorcism
-------------

In some architectural corner cases, AT instructions can generate an exception, which KVM is not really ready to handle properly. Teach the code to handle this situation gracefully.

This is a backport of the respective upstream patches to v5.8(.5). James prepared and tested these already, but we were lacking the upstream commit ID so far.
I am sending this on his behalf, since he is off this week.

The last two of the originally three patches were tagged Cc: stable already, but 2/3 did not apply cleanly, hence this specific backport. 3/3 has already been added to stable-queue, so I am dropping it from this post.

Cheers,
Andre.

James Morse (2):
KVM: arm64: Add kvm_extable for vaxorcism code
KVM: arm64: Survive synchronous exceptions caused by AT instructions

 arch/arm64/include/asm/kvm_asm.h | 43 +++++++++++++++++++++
 arch/arm64/kernel/vmlinux.lds.S  |  8 ++++
 arch/arm64/kvm/hyp/entry.S       | 15 +++++---
 arch/arm64/kvm/hyp/hyp-entry.S   | 65 ++++++++++++++++++++------------
 arch/arm64/kvm/hyp/switch.c      | 39 +++++++++++++++++--
 5 files changed, 136 insertions(+), 34 deletions(-)
Signature · 1 line
2.17.1