x86/mm: pod: use the correct memory flags for alloc_domheap_page{,s}
authorJulien Grall <julien.grall@citrix.com>
Mon, 26 Oct 2015 12:58:35 +0000 (13:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 26 Oct 2015 12:58:35 +0000 (13:58 +0100)
commit69176a4b9c27796bb4cde1e13f28f5eace425400
treecac06ed08714ade306819a150eaa6ab66b340d96
parente896ad9a9164a432538789fa2993a1084fd0a387
x86/mm: pod: use the correct memory flags for alloc_domheap_page{,s}

The last parameter of alloc_domheap_page{s,} contain the memory flags and
not the order of the allocation.

Use 0 for the call in p2m_pod_set_cache_target as it was before
1069d63c5ef2510d08b83b2171af660e5bb18c63 "x86/mm/p2m: use defines for
page sizes". Note that PAGE_ORDER_4K is also equal to 0 so the behavior
stays the same.

For the call in p2m_pod_offline_or_broken_replace we want to allocate
the new page on the same numa node as the previous page. So retrieve the
numa node and pass it in the memory flags.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Tested-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pod.c