]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Add AT fast-path support for S1PIE
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:26 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:44:20 +0000 (02:44 +0000)
commit23e7a34c8397d1ecff430b3500ad5c8bdea10a5c
tree06766cd48fe5786ce09ff0bc2793be50547cebc8
parent874ae1d48e607d41ae08fa72a9ed76cb62651085
KVM: arm64: Add AT fast-path support for S1PIE

Emulating AT using AT instructions requires that the live state
matches the translation regime the AT instruction targets.

If targeting the EL1&0 translation regime and that S1PIE is
supported, we also need to restore that state (covering TCR2_EL1,
PIR_EL1, and PIRE0_EL1).

Add the required system register switcheroo.

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