KVM: arm64: Extract __do_hyp_init into a helper function
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:15 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 10:08:35 +0000 (10:08 +0000)
commitf74e1e2128b7681f0d9c2a66dc4480e7d7196b49
treee7eed7705f6e3b6efad623750387675a43d6162f
parent1fd12b7e4d0082a9f373e26ab11fc94bcc307d33
KVM: arm64: Extract __do_hyp_init into a helper function

In preparation for adding a CPU entry point in nVHE hyp code, extract
most of __do_hyp_init hypervisor initialization code into a common
helper function. This will be invoked by the entry point to install KVM
on the newly booted CPU.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201202184122.26046-20-dbrazdil@google.com
arch/arm64/kvm/hyp/nvhe/hyp-init.S