KVM: arm64: Factor memory allocation out of pgtable.c
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:14 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:01:20 +0000 (12:01 +0000)
commit7aef0cbcdcd0995efde9957b3eda9f31a219613d
tree9c29edd6977b4442423f430c4bd2ffcbeee5db70
parentcc706a63894fdcc25d226378898921e1ab7dd64e
KVM: arm64: Factor memory allocation out of pgtable.c

In preparation for enabling the creation of page-tables at EL2, factor
all memory allocation out of the page-table code, hence making it
re-usable with any compatible memory allocator.

No functional changes intended.

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