arm64: KVM: Reorder system register restoration and stage-2 activation
authorMarc Zyngier <maz@kernel.org>
Wed, 9 Jan 2019 14:46:23 +0000 (14:46 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 26 Oct 2019 09:43:32 +0000 (10:43 +0100)
commit1d8cd06af548bb1ba29e16eec78c0862e799a731
tree9c3ba8af0a7e3ab96cc154cd70475b6efad0c7af
parentf75e2294a4415621b223150065c8d1e823896da5
arm64: KVM: Reorder system register restoration and stage-2 activation

In order to prepare for handling erratum 1319367, we need to make
sure that all system registers (and most importantly the registers
configuring the virtual memory) are set before we enable stage-2
translation.

This results in a minor reorganisation of the load sequence, without
any functional change.

Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/switch.c