From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: xen/x86: Question about alloc_domheap_page in pod code Date: Thu, 22 Oct 2015 16:04:45 +0100 Message-ID: <5628FB0D.5070402@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZpHRT-00011V-2k for xen-devel@lists.xenproject.org; Thu, 22 Oct 2015 15:06:11 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap , Andrew Cooper , Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Hi, I was looking to the pod code (arch/x86/mm/p2m-pod.c) and noticed that the calls to alloc_domheap_page{s,} seems to take wrong parameter: page = alloc_domheap_pages(d, order, PAGE_ORDER_4K); p = alloc_domheap_page(d, PAGE_ORDER_4K); AFAICT the last parameter is the memory flags and not the order so using PAGE_ORDER_4K is wrong. Am I right? I don't know much x86, hence my question before sending a patch to fix it. Regards, -- Julien Grall