]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Add sanitisation to SCTLR_EL2
authorMarc Zyngier <maz@kernel.org>
Mon, 2 Feb 2026 18:43:28 +0000 (18:43 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Feb 2026 09:02:13 +0000 (09:02 +0000)
commite8ef27900c6a8c0727dcf62d4112d08c5046d33e
tree5d490180c2edadc874b10d6a096071a404107305
parentfb40cb15e8ad1e7511966a953de0f409aaae4398
KVM: arm64: Add sanitisation to SCTLR_EL2

Sanitise SCTLR_EL2 the usual way. The most important aspect of
this is that we benefit from SCTLR_EL2.SPAN being RES1 when
HCR_EL2.E2H==0.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260202184329.2724080-20-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/config.c
arch/arm64/kvm/nested.c