]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: Provide basic EL2 setup for FEAT_{LS64, LS64_V} usage at EL0/1
authorYicong Yang <yangyicong@hisilicon.com>
Mon, 19 Jan 2026 02:29:25 +0000 (10:29 +0800)
committerWill Deacon <will@kernel.org>
Thu, 22 Jan 2026 13:24:49 +0000 (13:24 +0000)
commitdea58da4b6fede082d9f38ce069090fd6d43f4e2
tree37493d9a9f714586995fcd04d8c8718c28788a32
parent2937aeec9dc5d25a02c1415a56d88ee4cc17ad83
arm64: Provide basic EL2 setup for FEAT_{LS64, LS64_V} usage at EL0/1

Instructions introduced by FEAT_{LS64, LS64_V} is controlled by
HCRX_EL2.{EnALS, EnASR}. Configure all of these to allow usage
at EL0/1.

This doesn't mean these instructions are always available in
EL0/1 if provided. The hypervisor still have the control at
runtime.

Acked-by: Will Deacon <will@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Oliver Upton <oupton@kernel.org>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/el2_setup.h