Commit 84cc4154 authored by Marc Zyngier's avatar Marc Zyngier Committed by Amit Pundir
Browse files

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: default avatarChristoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit 1e947bad)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent c6e084ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment