]> xenbits.xensource.com Git - people/liuw/xen.git/commit
mm: introduce arch_free_heap_page()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 9 Mar 2016 15:51:50 +0000 (16:51 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Mar 2016 16:32:35 +0000 (16:32 +0000)
commitdad2b16d068cd8e2f885575a7151bf62ccbec34b
tree24ff8809e557a0c3182cd947381e4ec00d9c87ea
parent1c732b4985257af125e41b0b9fc75705892483b6
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