]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Sanitise TCR2_EL2
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:20 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:42:30 +0000 (02:42 +0000)
commitad4f6ef0fa19d0418e4087fd6783679c3fdfa888
treecc89a162903b754a7f73391992563e249447b75a
parent69c19e047dfee63f3e5b06b4ad288bbad32fe8f0
KVM: arm64: Sanitise TCR2_EL2

TCR2_EL2 is a bag of control bits, all of which are only valid if
certain features are present, and RES0 otherwise.

Describe these constraints and register them with the masking
infrastructure.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20241023145345.1613824-13-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/nested.c