From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A7DD427A1A; Mon, 11 May 2026 16:24:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778516662; cv=none; b=G6huN+VzasWhN+BfXZ4dEf4iUNcGIlzSWbQZ1TK32iTcUVbm5qJ+DDJiLJkcKVZRgAsyAog3kSGwcFHnSbU6eEmsLVGboxhQ44UFZ6DMUyZG/tOp3nuvsx9f7x7wNvabClPJc9/78BPlM7OAgZuEfgIhgbLqZ76pXPHeT7p8QN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778516662; c=relaxed/simple; bh=Icxp/2zTEWFWB1l9WBso0osK3O2lNGd3GjwhaVKfMv4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=br3H4upa2bOL1HlaF+mrdPudwPz2uMU1LAAoghtbTRWfAkvC02emYWmuZs2Qp8olKMZzpuhC8fv8mWF/PXhYIXX9Xwct7Q7F0vAylKw9Kb8pdQvG5LVBkv56z1HZvIOuKnuAplh8aX7WlEEAt8/rq7KpulIiG3fqKKThTDNFtWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=hAMB4NYF; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="hAMB4NYF" Received: from zhangyu-hyperv.mshome.net (unknown [167.220.233.27]) by linux.microsoft.com (Postfix) with ESMTPSA id 2C73720B7167; Mon, 11 May 2026 09:24:14 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2C73720B7167 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1778516658; bh=H4vi3789xKpCrKQcy0slwveGpMN79RMnjsW6wHx0pNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hAMB4NYFy3OHF0piP3bHAxdJlFqPDoOFNbfT0INQn53PyBWsFuDkre62NRj/dkKr4 8YsdF0JRB3k2yuAl4dx876ivAlG/YE5StTllzuO5luM58+o/SznfuYTjQwFUrgqsTp FBqRVm0QDvFGCGCOXxmgXkQPQ9i5TC7ir8Btd++U= From: Yu Zhang To: linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, iommu@lists.linux.dev, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org Cc: wei.liu@kernel.org, kys@microsoft.com, haiyangz@microsoft.com, decui@microsoft.com, longli@microsoft.com, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, bhelgaas@google.com, kwilczynski@kernel.org, lpieralisi@kernel.org, mani@kernel.org, robh@kernel.org, arnd@arndb.de, jgg@ziepe.ca, mhklinux@outlook.com, jacob.pan@linux.microsoft.com, tgopinath@linux.microsoft.com, easwar.hariharan@linux.microsoft.com Subject: [PATCH v1 1/4] iommu: Move Hyper-V IOMMU driver to its own subdirectory Date: Tue, 12 May 2026 00:24:05 +0800 Message-ID: <20260511162408.1180069-2-zhangyu1@linux.microsoft.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260511162408.1180069-1-zhangyu1@linux.microsoft.com> References: <20260511162408.1180069-1-zhangyu1@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Easwar Hariharan The Hyper-V IOMMU driver currently only supports IRQ remapping. As it will be adding DMA remapping support, prepare a directory to contain all the different feature files. This is a simple rename commit and has no functional changes. Signed-off-by: Easwar Hariharan Signed-off-by: Yu Zhang --- MAINTAINERS | 2 +- drivers/iommu/Kconfig | 10 +--------- drivers/iommu/Makefile | 2 +- drivers/iommu/hyperv/Kconfig | 10 ++++++++++ drivers/iommu/hyperv/Makefile | 2 ++ .../iommu/{hyperv-iommu.c => hyperv/irq_remapping.c} | 2 +- 6 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 drivers/iommu/hyperv/Kconfig create mode 100644 drivers/iommu/hyperv/Makefile rename drivers/iommu/{hyperv-iommu.c => hyperv/irq_remapping.c} (99%) diff --git a/MAINTAINERS b/MAINTAINERS index b2040011a386..1519de2a2a09 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11979,7 +11979,7 @@ F: drivers/clocksource/hyperv_timer.c F: drivers/hid/hid-hyperv.c F: drivers/hv/ F: drivers/input/serio/hyperv-keyboard.c -F: drivers/iommu/hyperv-iommu.c +F: drivers/iommu/hyperv/ F: drivers/net/ethernet/microsoft/ F: drivers/net/hyperv/ F: drivers/pci/controller/pci-hyperv-intf.c diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index f86262b11416..0bdf2ac3d782 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -195,6 +195,7 @@ config MSM_IOMMU source "drivers/iommu/amd/Kconfig" source "drivers/iommu/arm/Kconfig" source "drivers/iommu/intel/Kconfig" +source "drivers/iommu/hyperv/Kconfig" source "drivers/iommu/iommufd/Kconfig" source "drivers/iommu/riscv/Kconfig" @@ -351,15 +352,6 @@ config MTK_IOMMU_V1 if unsure, say N here. -config HYPERV_IOMMU - bool "Hyper-V IRQ Handling" - depends on HYPERV && X86 - select IOMMU_API - default HYPERV - help - Stub IOMMU driver to handle IRQs to support Hyper-V Linux - guest and root partitions. - config VIRTIO_IOMMU tristate "Virtio IOMMU driver" depends on VIRTIO diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile index 0275821f4ef9..32f3ca758556 100644 --- a/drivers/iommu/Makefile +++ b/drivers/iommu/Makefile @@ -4,6 +4,7 @@ obj-$(CONFIG_AMD_IOMMU) += amd/ obj-$(CONFIG_INTEL_IOMMU) += intel/ obj-$(CONFIG_RISCV_IOMMU) += riscv/ obj-$(CONFIG_GENERIC_PT) += generic_pt/fmt/ +obj-$(CONFIG_HYPERV_IOMMU) += hyperv/ obj-$(CONFIG_IOMMU_API) += iommu.o obj-$(CONFIG_IOMMU_SUPPORT) += iommu-pages.o obj-$(CONFIG_IOMMU_API) += iommu-traces.o @@ -30,7 +31,6 @@ obj-$(CONFIG_TEGRA_IOMMU_SMMU) += tegra-smmu.o obj-$(CONFIG_EXYNOS_IOMMU) += exynos-iommu.o obj-$(CONFIG_FSL_PAMU) += fsl_pamu.o fsl_pamu_domain.o obj-$(CONFIG_S390_IOMMU) += s390-iommu.o -obj-$(CONFIG_HYPERV_IOMMU) += hyperv-iommu.o obj-$(CONFIG_VIRTIO_IOMMU) += virtio-iommu.o obj-$(CONFIG_IOMMU_SVA) += iommu-sva.o obj-$(CONFIG_IOMMU_IOPF) += io-pgfault.o diff --git a/drivers/iommu/hyperv/Kconfig b/drivers/iommu/hyperv/Kconfig new file mode 100644 index 000000000000..30f40d867036 --- /dev/null +++ b/drivers/iommu/hyperv/Kconfig @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-only +# HyperV paravirtualized IOMMU support +config HYPERV_IOMMU + bool "Hyper-V IRQ Handling" + depends on HYPERV && X86 + select IOMMU_API + default HYPERV + help + Stub IOMMU driver to handle IRQs to support Hyper-V Linux + guest and root partitions. diff --git a/drivers/iommu/hyperv/Makefile b/drivers/iommu/hyperv/Makefile new file mode 100644 index 000000000000..9f557bad94ff --- /dev/null +++ b/drivers/iommu/hyperv/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_HYPERV_IOMMU) += irq_remapping.o diff --git a/drivers/iommu/hyperv-iommu.c b/drivers/iommu/hyperv/irq_remapping.c similarity index 99% rename from drivers/iommu/hyperv-iommu.c rename to drivers/iommu/hyperv/irq_remapping.c index 479103261ae6..62a94a8c9e95 100644 --- a/drivers/iommu/hyperv-iommu.c +++ b/drivers/iommu/hyperv/irq_remapping.c @@ -22,7 +22,7 @@ #include #include -#include "irq_remapping.h" +#include "../irq_remapping.h" #ifdef CONFIG_IRQ_REMAP -- 2.52.0