]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu/hyperv: Create hyperv subdirectory under drivers/iommu
authorMukesh R <mrathor@linux.microsoft.com>
Wed, 3 Jun 2026 22:50:10 +0000 (15:50 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 8 Jun 2026 05:55:56 +0000 (22:55 -0700)
commitc14efec1452098ec97d30423e4120e4fa90e0663
treeeb959ee1c32b0fb03fed9960117ec0320ac80914
parent7a035678fc2bdee81881170764ef08a91a076147
iommu/hyperv: Create hyperv subdirectory under drivers/iommu

Create hyperv subdirectory under drivers/iommu in anticipation of more
Hyper-V related files from upcoming PCI passthrough and PV-IOMMU patches.
Also, the current file hyperv-iommu.c actually implements irq remapping on
x86, so rename to more appropriate hv-irq-remap-x86.c and move it under
the new hyperv subdirectory. Since this file implements irq_remap_ops
exposed by drivers/iommu/irq_remapping.h, it cannot be relocated to the
irq directory. This is in sync with other backend directories like amd
and intel there.

Lastly, this file should not be tied to CONFIG_HYPERV_IOMMU, but to
CONFIG_HYPERV and CONFIG_IRQ_REMAP.

Signed-off-by: Mukesh R <mrathor@linux.microsoft.com>
Reviewed-by: Jacob Pan <jacob.pan@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
MAINTAINERS
drivers/iommu/Kconfig
drivers/iommu/Makefile
drivers/iommu/hyperv/Makefile [new file with mode: 0644]
drivers/iommu/hyperv/hv-irq-remap-x86.c [moved from drivers/iommu/hyperv-iommu.c with 99% similarity]
drivers/iommu/irq_remapping.c