KVM: arm64: Fix out-of-IPA space translation fault handling
authorWujie Duan <wjduan@linx-info.com>
Mon, 18 Mar 2024 09:47:35 +0000 (17:47 +0800)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 26 Mar 2024 08:51:44 +0000 (01:51 -0700)
commitf5fe0adeed6019df495497a64cb57d563ead2296
tree471cfbfb2bf040d599f00abf259986355779da39
parente89c928bedd77d181edc2df01cb6672184775140
KVM: arm64: Fix out-of-IPA space translation fault handling

Commit 11e5ea5242e3 ("KVM: arm64: Use helpers to classify exception
types reported via ESR") tried to abstract the translation fault
check when handling an out-of IPA space condition, but incorrectly
replaced it with a permission fault check.

Restore the previous translation fault check.

Fixes: 11e5ea5242e3 ("KVM: arm64: Use helpers to classify exception types reported via ESR")
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Wujie Duan <wjduan@linx-info.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/kvmarm/864jd3269g.wl-maz@kernel.org/
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/mmu.c