From: Vasant Hegde <vasant.hegde@amd.com>
To: Easwar Hariharan <easwar.hariharan@linux.microsoft.com>,
Jacob Pan <jacob.pan@linux.microsoft.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
baolu.lu@linux.intel.com, Yu Zhang <zhangyu1@linux.microsoft.com>,
linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org,
iommu@lists.linux.dev, linux-pci@vger.kernel.org,
linux-arch@vger.kernel.org, x86@kernel.org, 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, tgopinath@linux.microsoft.com,
mrathor@linux.microsoft.com, suravee.suthikulpanit@amd.com
Subject: Re: [PATCH v5 4/5] iommu/hyperv: Add para-virtualized IOMMU support for Hyper-V guest
Date: Wed, 30 Sep 2026 12:47:36 +0530 [thread overview]
Message-ID: <4e08d7ae-d591-4cb4-a269-4e56b1aa5f55@amd.com> (raw)
In-Reply-To: <30c45240-3dd4-43d5-8512-6f3e7e839f51@linux.microsoft.com>
On 9/30/2026 3:04 AM, Easwar Hariharan wrote:
> On 9/29/2026 14:25, Jacob Pan wrote:
>> Hi Jason,
>>
>> On Tue, 29 Sep 2026 17:04:47 -0300
>> Jason Gunthorpe <jgg@nvidia.com> wrote:
>>
>>>> +config HYPERV_PVIOMMU
>>>> + bool "Microsoft Hyper-V para-virtualized IOMMU driver for
>>>> Linux guests"
>>>> + depends on X86_64 && HYPERV
>>>> + select IOMMU_API
>>>> + select GENERIC_PT
>>>> + select IOMMU_PT
>>>> + select IOMMU_PT_X86_64
>>>> + select IOMMU_IOVA
>>>
>>> Should this be IOMMU_DMA ?
>>
>> I agree. I guess we should also delete "select IOMMU_API", since
>> IOMMU_DMA selects both.
>>
>> Noticed vt-d driver has the same option, maybe it should also
>> be changed. Baolu, is that due to historical reasons?
>>
>> config INTEL_IOMMU
>> bool "Support for Intel IOMMU using DMA Remapping Devices"
>> depends on PCI_MSI && ACPI && X86
>> select IOMMU_API
>> select GENERIC_PT
>> select IOMMU_PT
>> select IOMMU_PT_X86_64
>> select IOMMU_PT_VTDSS
>> select IOMMU_IOVA
>
> FWIW, AMD also has the same...
>
> config AMD_IOMMU
> bool "AMD IOMMU support"
> select SWIOTLB
> select PCI_MSI
> select PCI_ATS
> select PCI_PRI
> select PCI_PASID
> select IRQ_MSI_LIB
> select MMU_NOTIFIER
> select IOMMU_API
> select IOMMU_IOVA
We should replace IOMMU_API And IOMMU_IOVA with IOMMU_DMA.
also probably we should move PCI_ATS, PCI_PRI, PCI_PASID to CONFIG_IOMMU_SVA and
remove it from amd/intel driver code.
-Vasant
next prev parent reply other threads:[~2026-09-30 7:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 7:55 [PATCH v5 0/5] Hyper-V: Add para-virtualized IOMMU support for Linux guests Yu Zhang
2026-09-04 7:55 ` [PATCH v5 1/5] hyperv: Introduce new hypercall interfaces used by Hyper-V guest IOMMU Yu Zhang
2026-09-04 7:55 ` [PATCH v5 2/5] Drivers: hv: Add logical device ID registry for vPCI devices Yu Zhang
2026-09-04 7:55 ` [PATCH v5 3/5] iommu/x86: Add architectural MSI reserved region helper Yu Zhang
2026-09-29 20:04 ` Jason Gunthorpe
2026-09-04 7:55 ` [PATCH v5 4/5] iommu/hyperv: Add para-virtualized IOMMU support for Hyper-V guest Yu Zhang
2026-09-05 2:15 ` Mukesh R
2026-09-07 8:41 ` Yu Zhang
2026-09-07 21:08 ` Mukesh R
2026-09-08 3:16 ` Yu Zhang
2026-09-08 23:44 ` Mukesh R
2026-09-29 20:04 ` Jason Gunthorpe
2026-09-29 21:25 ` Jacob Pan
2026-09-29 21:34 ` Easwar Hariharan
2026-09-30 7:17 ` Vasant Hegde [this message]
2026-09-04 7:55 ` [PATCH v5 5/5] iommu/hyperv: Add page-selective IOTLB flush support Yu Zhang
2026-09-04 14:53 ` Michael Kelley
2026-09-29 20:04 ` Jason Gunthorpe
2026-09-07 8:48 ` [PATCH v5 0/5] Hyper-V: Add para-virtualized IOMMU support for Linux guests Yu Zhang
2026-09-21 16:55 ` Yu Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4e08d7ae-d591-4cb4-a269-4e56b1aa5f55@amd.com \
--to=vasant.hegde@amd.com \
--cc=arnd@arndb.de \
--cc=baolu.lu@linux.intel.com \
--cc=bhelgaas@google.com \
--cc=decui@microsoft.com \
--cc=easwar.hariharan@linux.microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=iommu@lists.linux.dev \
--cc=jacob.pan@linux.microsoft.com \
--cc=jgg@nvidia.com \
--cc=jgg@ziepe.ca \
--cc=joro@8bytes.org \
--cc=kwilczynski@kernel.org \
--cc=kys@microsoft.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=longli@microsoft.com \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=mhklinux@outlook.com \
--cc=mrathor@linux.microsoft.com \
--cc=robh@kernel.org \
--cc=robin.murphy@arm.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=tgopinath@linux.microsoft.com \
--cc=wei.liu@kernel.org \
--cc=will@kernel.org \
--cc=x86@kernel.org \
--cc=zhangyu1@linux.microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®