KVM: arm64: Clean up cpu_init_hyp_mode()
authorDavid Brazdil <dbrazdil@google.com>
Fri, 15 May 2020 15:20:56 +0000 (16:20 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 25 May 2020 15:15:47 +0000 (16:15 +0100)
commit71b3ec5f221b8b3ff545639be83ddfcd5d7c9800
treee975bcef0ab85061955b72b28006248a51a58b68
parent5107000faa6e8c2b0ff7a91a6d1f010f84596cd2
KVM: arm64: Clean up cpu_init_hyp_mode()

Pull bits of code to the only place where it is used. Remove empty function
__cpu_init_stage2(). Remove redundant has_vhe() check since this function is
nVHE-only. No functional changes intended.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200515152056.83158-1-dbrazdil@google.com
arch/arm64/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c