]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Enable SCTLR2 when advertised to the guest
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 17:25:18 +0000 (10:25 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 18:36:35 +0000 (11:36 -0700)
commit7fb7660b9c0b27ea9043c0f1218d39d3511eabdc
treee800cdd83c59cc35e236f36d57c9ebc340f059c1
parent02dd33ec88311ed1ce491476cfc5ade7d6505cc2
KVM: arm64: Enable SCTLR2 when advertised to the guest

HCRX_EL2.SCTLR2En needs to be set for SCTLR2_EL1 to take effect in
hardware (in addition to disabling traps).

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250708172532.1699409-14-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_emulate.h