OSDN Git Service

KVM: arm64: Use kvm_arch in kvm_s2_mmu
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:28 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:01:21 +0000 (12:01 +0000)
commitcfb1a98de7a9aa51931ff5b336fc5c3c201d01cc
treed331a99c3e01a39084700cef7cc761e430fd9bc8
parent834cd93deb75f3a43420e479f133dd02fba95aa6
KVM: arm64: Use kvm_arch in kvm_s2_mmu

In order to make use of the stage 2 pgtable code for the host stage 2,
change kvm_s2_mmu to use a kvm_arch pointer in lieu of the kvm pointer,
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-21-qperret@google.com
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/mmu.c