OSDN Git Service

KVM: arm64: Use generic allocator for hyp stage-1 page-tables
authorWill Deacon <will@kernel.org>
Fri, 11 Sep 2020 13:25:12 +0000 (14:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Sep 2020 14:51:13 +0000 (15:51 +0100)
commit0f9d09b8e29bc8166f6584279aedc4a7a4038f68
tree4684d80229f5cb9e5c954296bb5fb8d74116d1ad
parentbb0e92cbbcd1f91411d0a7241f8febe2c8c5b078
KVM: arm64: Use generic allocator for hyp stage-1 page-tables

Now that we have a shiny new page-table allocator, replace the hyp
page-table code with calls into the new API. This also allows us to
remove the extended idmap code, as we can now simply ensure that the
VA size is large enough to map everything we need.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20200911132529.19844-5-will@kernel.org
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/include/asm/pgtable-hwdef.h
arch/arm64/include/asm/pgtable-prot.h
arch/arm64/kvm/mmu.c