]> 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)
commit29680853cf027fae2d60b010b76ef195febd9bd5
tree5ef2b50354961ec30dcd9d8c72be350d760550ac
parentb0d5a1a81ece3eeb81334180ee1d468fadccaef1
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