Re: [PATCH V2] iommu/hyperv: Create hyperv subdirectory under drivers/iommu
From: Easwar Hariharan
Date: Fri Jun 12 2026 - 11:49:46 EST
On 6/3/2026 15:50, Mukesh R wrote:
> Create hyperv subdirectory under drivers/iommu in anticipation of more
> hyperv related files from upcoming PCI passthru 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@xxxxxxxxxxxxxxxxxxx>
> ---
> V2: rename hv-irq-remap.c to hv-irq-remap-x86.c
> ---
> MAINTAINERS | 2 +-
> drivers/iommu/Kconfig | 9 ---------
> drivers/iommu/Makefile | 2 +-
> drivers/iommu/hyperv/Makefile | 2 ++
> .../iommu/{hyperv-iommu.c => hyperv/hv-irq-remap-x86.c} | 8 +-------
> drivers/iommu/irq_remapping.c | 2 +-
> 6 files changed, 6 insertions(+), 19 deletions(-)
> create mode 100644 drivers/iommu/hyperv/Makefile
> rename drivers/iommu/{hyperv-iommu.c => hyperv/hv-irq-remap-x86.c} (99%)
Reviewed-by: Easwar Hariharan <easwar.hariharan@xxxxxxxxxxxxxxxxxxx>