]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: Add ESR decoding for exceptions involving translation level -1
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:29:14 +0000 (13:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:37 +0000 (12:42 +0000)
commit7ac8d5b2423cc0112ac2519276610865142a577b
tree9472927e281764c4a7666a0f39d21695a28884a2
parent60d043c101769b4fd6f609b4a7b9b8ad1f867860
arm64: Add ESR decoding for exceptions involving translation level -1

The LPA2 feature introduces new FSC values to report abort exceptions
related to translation level -1. Define these and wire them up.

Reuse the new ESR FSC classification helpers that arrived via the KVM
arm64 tree, and update the one for translation faults to check
specifically for a translation fault at level -1. (Access flag or
permission faults cannot occur at level -1 because they alway involve a
descriptor at the superior level so changing those helpers is not
needed).

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-73-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/esr.h
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/mm/fault.c