KVM: arm64: Use kvm_arch for stage 2 pgtable
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:27 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:01:21 +0000 (12:01 +0000)
commit834cd93deb75f3a43420e479f133dd02fba95aa6
treefc71ccb61bfa613a510bc19b79d917adf0ef3197
parentbfa79a805454f768b8d76ab683659d9e219a037a
KVM: arm64: Use kvm_arch for stage 2 pgtable

In order to make use of the stage 2 pgtable code for the host stage 2,
use struct kvm_arch in lieu of struct kvm as the host will have the
former but not the latter.

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-20-qperret@google.com
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/pgtable.c
arch/arm64/kvm/mmu.c