KVM: arm64: Set host stage 2 using kvm_nvhe_init_params
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:29 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:01:21 +0000 (12:01 +0000)
commit734864c177bca5148adfe7a96744993d61513430
tree292319c8d48611ce4c76b4d58bbfd57fa44ac5d7
parentcfb1a98de7a9aa51931ff5b336fc5c3c201d01cc
KVM: arm64: Set host stage 2 using kvm_nvhe_init_params

Move the registers relevant to host stage 2 enablement to
kvm_nvhe_init_params to prepare the ground for enabling it in later
patches.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210319100146.1149909-22-qperret@google.com
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kernel/asm-offsets.c
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/hyp-init.S
arch/arm64/kvm/hyp/nvhe/switch.c