From: "Jan Beulich" Subject: Re: [RFC PATCH 2/2] xen: tmem: make tmem aware of NUMA affinity Date: Tue, 18 Mar 2014 14:29:34 +0000 Message-ID: <5328665E02000078001252AC@nat28.tlf.novell.com> References: <1395145511-13381-1-git-send-email-bob.liu@oracle.com> <1395145511-13381-2-git-send-email-bob.liu@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395145511-13381-2-git-send-email-bob.liu@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Bob Liu Cc: ian.campbell@citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 18.03.14 at 13:25, Bob Liu wrote: > Persistant pages in tmem are allocated by alloc_domheap_pages(domain) which > is consistent with that domain's node affinity. But that's not true for > ephemeral pages, because domain=NULL have to be passed to > alloc_domheap_pages(NULL). > > This patch makes use of function alloc_domheap_pages_nodemask() introduced > by > previous patch, so that we can still only allocate memory from nodes in > d->node_affinity even when domain=NULL. > > Signed-off-by: Bob Liu While this may be considered reasonable, I don't think we want to see feature enhancements to tmem prior to the security audit having happened that has been outstanding for about 1.5 years (XSA-15). Jan