arm64: KVM: Skip HYP setup when already running in HYP
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 29 Jan 2015 11:59:54 +0000 (11:59 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:16 +0000 (18:34 +0000)
commit1e947bad0b63b351cbdd9ad55ea5bf7e31c76036
tree71e42f0401c96c3a77b91eeb8f4a0b2feace6417
parentd88701bea3664cea99b8b7380f63a3bd0ec3ead3
arm64: KVM: Skip HYP setup when already running in HYP

With the kernel running at EL2, there is no point trying to
configure page tables for HYP, as the kernel is already mapped.

Take this opportunity to refactor the whole init a bit, allowing
the various parts of the hypervisor bringup to be split across
multiple functions.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/arm.c
arch/arm/kvm/mmu.c