From: "Burakov, Anatoly" Subject: Re: [PATCH] eal: force IOVA mode to physical Date: Thu, 30 Aug 2018 10:09:04 +0100 Message-ID: References: <1535558289-10336-1-git-send-email-eric.zhang@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Allain.Legacy@windriver.com, Matt.Peters@windriver.com To: eric zhang , bruce.richardson@intel.com Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DD3FA231E for ; Thu, 30 Aug 2018 11:09:08 +0200 (CEST) In-Reply-To: <1535558289-10336-1-git-send-email-eric.zhang@windriver.com> 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 29-Aug-18 4:58 PM, eric zhang wrote: > This patch adds a configuration option to force the IOVA mode to > physical address (PA). There exists virtual devices that are not > directly attached to the PCI bus, and therefore the auto detection > of the IOVA mode based on probing the PCI bus and IOMMU configuration > may not report the required addressing mode. Having the configuration > option permits the mode to be explicitly configured in this scenario. > > Signed-off-by: eric zhang > --- Defining this at compile-time seems like an overkill. Wouldn't it be better to just add an EAL command-line option to force IOVA mode to a particular value? -- Thanks, Anatoly