]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7d2847b99e863bc9963260175155c2a47ac25d8
tree4684d80229f5cb9e5c954296bb5fb8d74116d1ad
parent8add07753ac8cef3b9a17c537bc6a7c2a753fc5c
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