]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita628ab2ce987d64436fe2e059bd64de187bb6eb7
tree71e42f0401c96c3a77b91eeb8f4a0b2feace6417
parent0738804da001005824d853070fd88324d4f4524c
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