summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/hyp/include
diff options
context:
space:
mode:
authorQuentin Perret <qperret@google.com>2021-06-08 14:45:14 +0300
committerMarc Zyngier <maz@kernel.org>2021-06-11 15:24:11 +0300
commit914cde58a03cc5eef858db34687433e17d0e44be (patch)
tree8cadb4eb7d1a61219d755b97ec262a02bd6ba5b2 /arch/arm64/kvm/hyp/include
parent581982decc635c93934aaeb88d62c21238c63f11 (diff)
downloadlinux-914cde58a03cc5eef858db34687433e17d0e44be.tar.xz
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
Diffstat (limited to 'arch/arm64/kvm/hyp/include')
-rw-r--r--arch/arm64/kvm/hyp/include/nvhe/memory.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp/include/nvhe/memory.h b/arch/arm64/kvm/hyp/include/nvhe/memory.h
index fd78bde939ee..7691ab495eb4 100644
--- a/arch/arm64/kvm/hyp/include/nvhe/memory.h
+++ b/arch/arm64/kvm/hyp/include/nvhe/memory.h
@@ -12,7 +12,6 @@ struct hyp_page {
unsigned int refcount;
unsigned int order;
struct hyp_pool *pool;
- struct list_head node;
};
extern u64 __hyp_vmemmap;