]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: use `at s1e1a` for POE
authorJoey Gouly <joey.gouly@arm.com>
Thu, 22 Aug 2024 15:10:52 +0000 (16:10 +0100)
committerWill Deacon <will@kernel.org>
Wed, 4 Sep 2024 11:52:39 +0000 (12:52 +0100)
commit55f4b215fb60f81e97d716fae42f967e435ce156
tree8c6d9394279259cbed8b8a90bc34e72a0c3c6aa3
parentb86c9bea634971565f15dc95c1b8752b14651c25
KVM: arm64: use `at s1e1a` for POE

FEAT_ATS1E1A introduces a new instruction: `at s1e1a`.
This is an address translation, without permission checks.

POE allows read permissions to be removed from S1 by the guest.  This means
that an `at` instruction could fail, and not get the IPA.

Switch to using `at s1e1a` so that KVM can get the IPA regardless of S1
permissions.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240822151113.1479789-10-joey.gouly@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kvm/hyp/include/hyp/fault.h