]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bdad71d2fbfef377679939024a29c3f75191515
treee4d694fb7f836e055027d982b47ee00056590ce3
parentac74e3312e988c4a7f8ff04ab6eb55a9c5650b0c
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