From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6] vfio: Support for no-IOMMU mode Date: Thu, 28 Jan 2016 17:55:58 +0100 Message-ID: <6131580.8fz09NyZQk@xps13> References: <1453913438-22991-1-git-send-email-anatoly.burakov@intel.com> <1453982274-16717-1-git-send-email-anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, alex.williamson@redhat.com To: Anatoly Burakov Return-path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 57E1CC4C0 for ; Thu, 28 Jan 2016 17:57:10 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id p63so33742635wmp.1 for ; Thu, 28 Jan 2016 08:57:10 -0800 (PST) In-Reply-To: <1453982274-16717-1-git-send-email-anatoly.burakov@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-01-28 11:57, Anatoly Burakov: > This commit is adding a generic mechanism to support multiple IOMMU > types. For now, it's only type 1 (x86 IOMMU) and no-IOMMU (a special > VFIO mode that doesn't use IOMMU at all), but it's easily extended > by adding necessary definitions to eal_vfio.h, and DMA mapping > functions to eal_pci_vfio.c. > > Since type 1 IOMMU module is no longer necessary to have VFIO, > we fix the module check to check for vfio-pci instead. It's not > ideal and triggers VFIO checks more often (and thus produces more > error output, which was the reason behind the module check in the > first place), so we compensate for that by providing more verbose > logging, indicating whether VFIO initialization has succeeded or > failed. > > Signed-off-by: Anatoly Burakov > Signed-off-by: Santosh Shukla > Tested-by: Santosh Shukla Applied, thanks