]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3675464eaf757170c9ae0d89aa1696dfc9530313
treed331a99c3e01a39084700cef7cc761e430fd9bc8
parent4d6f153f54e25ac7d49723483c4df1f6d11bc40a
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