From: Tim Deegan Subject: Re: [PATCH 3/6] x86/smp: Clean up use of memflags in cpu_smpboot_alloc() Date: Thu, 9 Apr 2015 16:02:21 +0100 Message-ID: <20150409150221.GD34853@deinos.phlegethon.org> References: <1428427580-8854-1-git-send-email-andrew.cooper3@citrix.com> <1428427580-8854-4-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1428427580-8854-4-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Keir Fraser , Jan Beulich , Xen-devel List-Id: xen-devel@lists.xenproject.org At 18:26 +0100 on 07 Apr (1428431177), Andrew Cooper wrote: > Hoist MEMF_node(cpu_to_node(cpu)) to the start of the function, and avoid > passing (potentially bogus) memflags if node information is not available. > > Signed-off-by: Andrew Cooper As it happens, MEMF_node(NUMA_NO_NODE) is already == 0. I'm not sure if that's by design or not, but this looks robuster. :) Reviewed-by: Tim Deegan