]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Disable hierarchical permissions when S1PIE is enabled
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:28 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:44:20 +0000 (02:44 +0000)
commit5e21b297872237a96a23b637e670548987a09bb9
tree93c6efcc5e4e15e7d7d08891968a1c3e792a32c9
parent4967b87a9ff7cb19bd85dd985616e08d0f08b07b
KVM: arm64: Disable hierarchical permissions when S1PIE is enabled

S1PIE implicitly disables hierarchical permissions, as specified in
R_JHSVW, by making TCR_ELx.HPDn RES1.

Add a predicate for S1PIE being enabled for a given translation regime,
and emulate this behaviour by forcing the hpd field to true if S1PIE
is enabled for that translation regime.

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