diff options
author | Quentin Perret <qperret@google.com> | 2021-03-19 11:01:29 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-03-19 13:01:21 +0100 |
commit | 734864c177bca5148adfe7a96744993d61513430 (patch) | |
tree | 292319c8d48611ce4c76b4d58bbfd57fa44ac5d7 /arch/arm64/include/asm/kvm_asm.h | |
parent | KVM: arm64: Use kvm_arch in kvm_s2_mmu (diff) | |
download | linux-734864c177bca5148adfe7a96744993d61513430.tar.xz linux-734864c177bca5148adfe7a96744993d61513430.zip |
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
Diffstat (limited to 'arch/arm64/include/asm/kvm_asm.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_asm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_asm.h b/arch/arm64/include/asm/kvm_asm.h index ebe7007b820b..08f63c09cd11 100644 --- a/arch/arm64/include/asm/kvm_asm.h +++ b/arch/arm64/include/asm/kvm_asm.h @@ -158,6 +158,9 @@ struct kvm_nvhe_init_params { unsigned long tpidr_el2; unsigned long stack_hyp_va; phys_addr_t pgd_pa; + unsigned long hcr_el2; + unsigned long vttbr; + unsigned long vtcr; }; /* Translate a kernel address @ptr into its equivalent linear mapping */ |