From: "Jan Beulich" Subject: Re: [PATCH] x86/mm: pod: Use the correct memory flags for alloc_domheap_page{, s} Date: Thu, 22 Oct 2015 09:48:28 -0600 Message-ID: <5629216C02000078000ADA46@prv-mh.provo.novell.com> References: <1445528599-11895-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZpI6T-00059k-LU for xen-devel@lists.xenproject.org; Thu, 22 Oct 2015 15:48:33 +0000 In-Reply-To: <1445528599-11895-1-git-send-email-julien.grall@citrix.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: Julien Grall Cc: George Dunlap , Andrew Cooper , Keir Fraser , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 22.10.15 at 17:43, wrote: > @@ -477,7 +477,7 @@ p2m_pod_offline_or_broken_replace(struct page_info *p) > > free_domheap_page(p); > > - p = alloc_domheap_page(d, PAGE_ORDER_4K); > + p = alloc_domheap_page(d, 0); I realize that this is the easiest fix, but I think here we instead want something like @@ -477,13 +477,14 @@ p2m_pod_offline_or_broken_replace(struct { struct domain *d; struct p2m_domain *p2m; + nodeid_t node = phys_to_nid(page_to_maddr(p)); if ( !(d = page_get_owner(p)) || !(p2m = p2m_get_hostp2m(d)) ) return; free_domheap_page(p); - p = alloc_domheap_page(d, PAGE_ORDER_4K); + p = alloc_domheap_pages(d, PAGE_ORDER_4K, MEMF_node(node)); if ( unlikely(!p) ) return; Jan