From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] eal: disable IOVA mode detection by default Date: Tue, 31 Oct 2017 23:32:45 -0700 Message-ID: <9339bd0d-b9be-21ef-5aa8-1f5b8b5af11f@intel.com> References: <20171101010726.17781-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , Santosh Shukla To: "Tan, Jianfeng" , Thomas Monjalon , "Richardson, Bruce" , "Gonzalez Monroy, Sergio" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7C8971B281 for ; Wed, 1 Nov 2017 07:32:47 +0100 (CET) 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" On 10/31/2017 7:17 PM, Tan, Jianfeng wrote: > > >> -----Original Message----- >> From: Yigit, Ferruh >> Sent: Wednesday, November 1, 2017 9:07 AM >> To: Thomas Monjalon; Richardson, Bruce; Gonzalez Monroy, Sergio >> Cc: dev@dpdk.org; Yigit, Ferruh; Tan, Jianfeng; Santosh Shukla >> Subject: [PATCH] eal: disable IOVA mode detection by default >> >> Fix kernel crash with KNI because KNI requires physical addresses. >> >> A config option introduced to disable IOVA mode detection and to set it >> to physical address by default. Disabling config option will enable IOVA >> mode detection. >> >> When there is no intension to use KNI, it is safe to enable detection. >> >> Config option disable IOVA mode detection by default to be sure only who >> is aware of result enable it. >> >> Fixes: 72d013644bd6 ("mem: honor IOVA mode in malloc virt2phy") >> >> Signed-off-by: Ferruh Yigit >> --- >> Cc: Jianfeng Tan >> Cc: Santosh Shukla >> Cc: Thomas Monjalon > > Refer to how vhost-kernel works, we may leverage a memory region table to do the translation. The bad side is it's less efficient than current phys_to_virt. Hi Jianfeng, Can you please elaborate? Thanks, ferruh > Another side, we did not check the result of phys_to_virt, that's why kernel crashes. > > Thanks, > Jianfeng >