From: Andrew Cooper Date: Tue, 7 Apr 2015 17:26:19 +0000 (+0100) Subject: x86/smp: Allocate pcpu stacks on their local numa node X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3446 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b143dae4c7402e43e6344bdb39b442955223567b;p=xen.git x86/smp: Allocate pcpu stacks on their local numa node Previously, all pcpu stacks tended to be allocated on node 0. Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich Reviewed-by: Dario Faggioli --- diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c index a009e913a6..116c8f8297 100644 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -642,7 +642,7 @@ static int cpu_smpboot_alloc(unsigned int cpu) if ( node != NUMA_NO_NODE ) memflags = MEMF_node(node); - stack_base[cpu] = alloc_xenheap_pages(STACK_ORDER, 0); + stack_base[cpu] = alloc_xenheap_pages(STACK_ORDER, memflags); if ( stack_base[cpu] == NULL ) goto oom; memguard_guard_stack(stack_base[cpu]);