From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2FEDC79FB9 for ; Thu, 10 Sep 2026 12:56:00 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7276742E46; Thu, 10 Sep 2026 14:53:58 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id B1E8542E15 for ; Thu, 10 Sep 2026 14:53:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789044836; x=1820580836; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=HFI7M3gn4H7dyn5AUwYCEo9wsm5Wi+DljV9uIBi/4DQ=; b=OyVLPStdpsh+ZS1LkKF+u6PESaqGBcmyGCNxbnea7NCanTwzWwMfnseA e1j/pbcGV1j6IpmJvJIvi2TifY0ABRu/76bz/9WtQVDuLvgFVZmILpiau 7IW/Za+ryTayzES/eeIjABTzWtF0O22T+ZJvOD5Ha6DqfhQM/yVp0/2/P jZqwMKbiGb04lV6eu/Cba1ADfh7zTtnu06lI50bxGcpB4AeyU0AZgqp24 eObJcEi7uEfBAjdEtdu7TuGmLUPYTqQhT1O6sLS7a0YqqAP3V3fOnySXe SiGz4NVPCSvPRXlb/HPjDjbBUIfQp1pg5P/pUzWZ6txSueMKPI0lSkoLp w==; X-CSE-ConnectionGUID: r+BR6UZmR5iw2Ole3heHAQ== X-CSE-MsgGUID: jTM4hbQHQaiDVhThBtIHCw== X-IronPort-AV: E=McAfee;i="6800,10657,11900"; a="89334114" X-IronPort-AV: E=Sophos;i="6.27,95,1787036400"; d="scan'208";a="89334114" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2026 05:53:55 -0700 X-CSE-ConnectionGUID: +kNWyG3qSHuLAxp1A50gnA== X-CSE-MsgGUID: Vyhw2HazSkeIHKxs3TbwZQ== X-ExtLoop1: 1 Received: from silpixa00401119.ir.intel.com ([10.20.224.206]) by fmviesa003.fm.intel.com with ESMTP; 10 Sep 2026 05:53:55 -0700 From: Anatoly Burakov To: dev@dpdk.org, Bruce Richardson Subject: [PATCH v17 25/26] vfio: remove no-IOMMU check API Date: Thu, 10 Sep 2026 13:53:09 +0100 Message-ID: <1a42dd27ce584053ffd84cd03c885e2e375f6e3e.1789044748.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The `dev_vfio_noiommu_is_enabled()` check has now been replaced by the new IOMMU mode API, so remove it. Signed-off-by: Anatoly Burakov --- lib/eal/freebsd/eal.c | 7 ------- lib/eal/include/dev_vfio.h | 14 -------------- lib/eal/linux/eal_vfio.c | 7 ------- 3 files changed, 28 deletions(-) diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c index 574a3a9fa4..62b8e04ea1 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -860,13 +860,6 @@ dev_vfio_is_enabled(__rte_unused const char *modname) return 0; } -RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_noiommu_is_enabled) -int -dev_vfio_noiommu_is_enabled(void) -{ - return 0; -} - RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_get_group_num) int dev_vfio_get_group_num(__rte_unused const char *sysfs_base, diff --git a/lib/eal/include/dev_vfio.h b/lib/eal/include/dev_vfio.h index c62d38e524..cd7232ccd5 100644 --- a/lib/eal/include/dev_vfio.h +++ b/lib/eal/include/dev_vfio.h @@ -203,20 +203,6 @@ __rte_internal enum dev_vfio_iommu_mode dev_vfio_get_iommu_mode(void); -/** - * @internal - * Check if VFIO NOIOMMU mode is enabled. - * - * This function is only relevant on Linux. - * - * @return - * 1 if enabled. - * 0 if not enabled or not supported. - */ -__rte_internal -int -dev_vfio_noiommu_is_enabled(void); - /** * @internal * Parse IOMMU group number for a device. diff --git a/lib/eal/linux/eal_vfio.c b/lib/eal/linux/eal_vfio.c index af48f95d8f..0415c621ea 100644 --- a/lib/eal/linux/eal_vfio.c +++ b/lib/eal/linux/eal_vfio.c @@ -1400,13 +1400,6 @@ container_dma_unmap(struct vfio_container *cfg, uint64_t vaddr, uint64_t iova, return ret; } -RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_noiommu_is_enabled) -int -dev_vfio_noiommu_is_enabled(void) -{ - return vfio_global_cfg.iommu_mode == DEV_VFIO_IOMMU_MODE_UNSAFE; -} - RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_container_create) int dev_vfio_container_create(void) -- 2.52.0