KVM: arm64: Make the hyp memory pool static
authorQuentin Perret <qperret@google.com>
Wed, 8 Dec 2021 15:22:56 +0000 (15:22 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 15 Dec 2021 14:17:01 +0000 (14:17 +0000)
commit53a563b01fa2ae2376a0b7d547f26a0ae9c78b5c
treee4d694fb7f836e055027d982b47ee00056590ce3
parenta770ee80e66270a7df183dda5ad6df4e8c8ab615
KVM: arm64: Make the hyp memory pool static

The hyp memory pool struct is sized to fit exactly the needs of the
hypervisor stage-1 page-table allocator, so it is important it is not
used for anything else. As it is currently used only from setup.c,
reduce its visibility by marking it static.

Signed-off-by: Quentin Perret <qperret@google.com>
Reviewed-by: Andrew Walbran <qwandor@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211208152300.2478542-4-qperret@google.com
arch/arm64/kvm/hyp/include/nvhe/mm.h
arch/arm64/kvm/hyp/nvhe/setup.c