summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2024-05-03 14:01:26 +0100
committerMarc Zyngier <maz@kernel.org>2024-08-30 12:03:51 +0100
commit69231a6fcb638b7929e9fc88c4fa73a04e6d4e0c (patch)
tree8e43908daa791abd2a7bb770a755ed9a3d67284e /arch/arm64/kvm
parent8400291e289ee6b2bf9779ff1c83a291501f017b (diff)
downloadlinux-stable-69231a6fcb638b7929e9fc88c4fa73a04e6d4e0c.tar.gz
linux-stable-69231a6fcb638b7929e9fc88c4fa73a04e6d4e0c.tar.bz2
linux-stable-69231a6fcb638b7929e9fc88c4fa73a04e6d4e0c.zip
KVM: arm64: Make kvm_at() take an OP_AT_*
To allow using newer instructions that current assemblers don't know about, replace the `at` instruction with the underlying SYS instruction. Signed-off-by: Joey Gouly <joey.gouly@arm.com> 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> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Acked-by: Will Deacon <will@kernel.org> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm')
-rw-r--r--arch/arm64/kvm/hyp/include/hyp/fault.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp/include/hyp/fault.h b/arch/arm64/kvm/hyp/include/hyp/fault.h
index 9e13c1bc2ad5..487c06099d6f 100644
--- a/arch/arm64/kvm/hyp/include/hyp/fault.h
+++ b/arch/arm64/kvm/hyp/include/hyp/fault.h
@@ -27,7 +27,7 @@ static inline bool __translate_far_to_hpfar(u64 far, u64 *hpfar)
* saved the guest context yet, and we may return early...
*/
par = read_sysreg_par();
- if (!__kvm_at("s1e1r", far))
+ if (!__kvm_at(OP_AT_S1E1R, far))
tmp = read_sysreg_par();
else
tmp = SYS_PAR_EL1_F; /* back to the guest */