Skip to content

KVM: arm64: Address Translation fixes

Marc Zyngier kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Fix PAR_EL1.{PTW,S} reporting on AT S1E*arch/arm64/kvm/at.c+11 -120 replies
2/3KVM: arm64: Teach address translation about access faultsarch/arm64/kvm/at.c+21 -53 replies
3/3KVM: arm64: Don't feed uninitialised data to HCR_EL2arch/arm64/kvm/at.c+4 -60 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJoey Gouly
1/3
2/3R-b
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] KVM: arm64: Address Translation fixes

Here's a small series of fixes for KVM's implementation of address translation (aka the AT S1* instructions), addressing a number of issues in increasing levels of severity:

- We misreport PAR_EL1.PTW in a number of occasions, including state that is not possible as per the architecture definition

- We don't handle access faults at all, and that doesn't play very well with the rest of the VNCR stuff

- AT S1E{0,1} from EL2 with HCR_EL2.{E2H,TGE}={1,1} will absolutely take the host down, no questions asked

Patches based on 6.15-rc3.

Marc Zyngier (3):
KVM: arm64: Fix PAR_EL1.{PTW,S} reporting on AT S1E*
KVM: arm64: Teach address translation about access faults
KVM: arm64: Don't feed uninitialised data to HCR_EL2

 arch/arm64/kvm/at.c | 59 +++++++++++++++++++++++++++------------------
 1 file changed, 36 insertions(+), 23 deletions(-)
Signature · 1 line
2.39.2