mm: keep PGC_extra pages on a separate list
authorPaul Durrant <paul@xen.org>
Tue, 24 Mar 2020 16:37:27 +0000 (17:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Mar 2020 16:37:27 +0000 (17:37 +0100)
commit4203f4d3dfcd73adaeea997f546e0ea27a3c170a
tree0c9ae2ac7715f57adaa10d29d2b4f9d676777fba
parent4c7d340f75abc64f131b0f9bffd6d66d72e43528
mm: keep PGC_extra pages on a separate list

This patch adds a new page_list_head into struct domain to hold PGC_extra
pages. This avoids them getting confused with 'normal' domheap pages where
the domain's page_list is walked.

A new dump loop is also added to dump_pageframe_info() to unconditionally
dump the 'extra page list'.

Signed-off-by: Paul Durrant <paul@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien@xen.org>
xen/arch/x86/domain.c
xen/common/domain.c
xen/common/page_alloc.c
xen/include/asm-x86/mm.h
xen/include/xen/mm.h
xen/include/xen/sched.h