From a16f10ab0aa76d88cc45cc01fae44b94d1873bbc Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Fri, 27 Sep 2024 14:41:08 +0100 Subject: [PATCH] arm64: Don't trap SVE to EL2 As with floating point instructions don't trap SVE instructions to the hypervisor. This lets us handle then in the kernel. Reviewed by: imp (earlier version) Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43303 (cherry picked from commit fe5ed2496e44aec018a6215175bba225b20d81fd) --- sys/arm64/include/hypervisor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm64/include/hypervisor.h b/sys/arm64/include/hypervisor.h index 602436d2a72..324b28673b1 100644 --- a/sys/arm64/include/hypervisor.h +++ b/sys/arm64/include/hypervisor.h @@ -50,7 +50,7 @@ /* CPTR_EL2 - Architecture feature trap register */ /* Valid if HCR_EL2.E2H == 0 */ #define CPTR_RES0 0x7fefc800 -#define CPTR_RES1 0x000033ff +#define CPTR_RES1 0x000032ff #define CPTR_TFP 0x00000400 /* Valid if HCR_EL2.E2H == 1 */ #define CPTR_FPEN 0x00300000