]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4215d4781c95282c6f7124cb5b11d1c8c3d4db58
tree9c3ba8af0a7e3ab96cc154cd70475b6efad0c7af
parent8fb066f36a305cace8d4c82506a6172a15769d93
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