]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Remove hyp_pool pointer from struct hyp_page
authorQuentin Perret <qperret@google.com>
Tue, 8 Jun 2021 11:45:16 +0000 (11:45 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Jun 2021 12:24:11 +0000 (13:24 +0100)
commitec10b21c05703a706b9dc3b8627f8032d558550e
tree5ef2b50354961ec30dcd9d8c72be350d760550ac
parentf924103e0a291a588e2d51d27a0ca05b20b7ee29
KVM: arm64: Remove hyp_pool pointer from struct hyp_page

Each struct hyp_page currently contains a pointer to a hyp_pool struct
where the page should be freed if its refcount reaches 0. However, this
information can always be inferred from the context in the EL2 code, so
drop the pointer to save a few bytes in the vmemmap.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210608114518.748712-6-qperret@google.com
arch/arm64/kvm/hyp/include/nvhe/gfp.h
arch/arm64/kvm/hyp/include/nvhe/memory.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c
arch/arm64/kvm/hyp/nvhe/page_alloc.c
arch/arm64/kvm/hyp/nvhe/setup.c