Re: [PATCH v3 4/5] iommu/hyperv: Add para-virtualized IOMMU support for Hyper-V guest

Yu Zhang <[email protected]>
Newsgroups dev.linux.lists.iommu,org.kernel.vger.linux-arch,org.kernel.vger.linux-hyperv,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci
Message-ID <b7lwpyr5zh3gqjxiznye35wih6xukj6uj4j2k7bbzxs7bt5ai5@5vs7vwjfrlsc>
On Thu, Aug 13, 2026 at 10:49:36AM -0300, Jason Gunthorpe wrote:
> On Tue, Aug 11, 2026 at 11:50:20PM +0800, Yu Zhang wrote:
> 
> > +static void hv_iommu_release_device(struct device *dev)
> > +{
> > +	struct hv_iommu_endpoint *vdev = dev_iommu_priv_get(dev);
> > +	struct pci_dev *pdev = to_pci_dev(dev);
> > +
> > +	if (pdev->ats_enabled)
> > +		pci_disable_ats(pdev);
> 
> Since attaching blocking does this and you set blocking as your
> release domain, this is redundant.
> 

Indeed, it is redundant. Will remove. Thank you, Jason.

B.R.
Yu

> The new flow looks alot better, removing the detach operation entirely
> makes sense if the HV can support attach on attach
> 
> Jason
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.