From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH 1/2] memalloc: do not leave unmapped holes in EAL virtual memory area Date: Fri, 1 Jun 2018 15:59:42 +0100 Message-ID: <4ef183de-b569-efa7-f9a7-17593c4ab5b4@intel.com> References: <1527857469-159391-1-git-send-email-dariuszx.stojaczyk@intel.com> <4ad00805-bf12-7426-4040-6a44c51226f2@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: "Stojaczyk, DariuszX" , "dev@dpdk.org" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id D37A14F94 for ; Fri, 1 Jun 2018 16:59:44 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >> Page size shouldn't be zero, should be alloc_sz. > > The 0 above is for the `flags` parameter. Page size is set to alloc_sz. > > ``` > void * > eal_get_virtual_area(void *requested_addr, size_t *size, > size_t page_sz, int flags, int mmap_flags); > ``` > > I believe it's okay. Correct me if I'm wrong. Apologies, you're right. I misread the code. -- Thanks, Anatoly