KVM: arm64: Remove list_head from hyp_page
authorQuentin Perret <qperret@google.com>
Tue, 8 Jun 2021 11:45:14 +0000 (11:45 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Jun 2021 12:24:11 +0000 (13:24 +0100)
commit914cde58a03cc5eef858db34687433e17d0e44be
tree8cadb4eb7d1a61219d755b97ec262a02bd6ba5b2
parent581982decc635c93934aaeb88d62c21238c63f11
KVM: arm64: Remove list_head from hyp_page

The list_head member of struct hyp_page is only needed when the page is
attached to a free-list, which by definition implies the page is free.
As such, nothing prevents us from using the page itself to store the
list_head, hence reducing the size of 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-4-qperret@google.com
arch/arm64/kvm/hyp/include/nvhe/memory.h
arch/arm64/kvm/hyp/nvhe/page_alloc.c