KVM: arm64: Streamline save/restore of HFG[RW]TR_EL2
authorMarc Zyngier <maz@kernel.org>
Wed, 14 Feb 2024 13:18:21 +0000 (13:18 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 19 Feb 2024 17:13:01 +0000 (17:13 +0000)
commitd196c20c6e58686fa46285c6528acc0b19357b84
tree940398df3c8a56971adf1c9a54ab044dc5864c02
parentc5bac1ef7df6bcce4feaa5a609119cab5d5e4730
KVM: arm64: Streamline save/restore of HFG[RW]TR_EL2

The way we save/restore HFG[RW]TR_EL2 can now be simplified, and
the Ampere erratum hack is the only thing that still stands out.

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