mm: introduce arch_free_heap_page()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 9 Mar 2016 15:51:50 +0000 (16:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Mar 2016 15:51:50 +0000 (16:51 +0100)
commit8979888d2d67ea6976438d392420dbc84f3868e4
tree24ff8809e557a0c3182cd947381e4ec00d9c87ea
parentcd29140ef0e65a33d62e7f5ee843077e51913f01
mm: introduce arch_free_heap_page()

common/page_alloc.c references d->arch.relmem_list, which only exists on x86.
This only compiles on ARM because page_list_del2() discards its second
argument.

Introduce a new common arch_free_heap_page() which only uses common lists in
struct domain, and allow an architecture to override this with a custom
alternative.  x86 then provides a custom arch_free_heap_page() which takes
care of managing d->arch.relmem_list.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c
xen/include/asm-x86/mm.h
xen/include/xen/mm.h