Messages in this thread | | | Date | Thu, 24 Feb 2022 09:04:23 -0400 | From | Jason Gunthorpe <> | Subject | Re: [PATCH v2 05/11] iommu/vt-d: Remove DEFER_DEVICE_DOMAIN_INFO |
| |
On Mon, Feb 14, 2022 at 10:56:58AM +0800, Lu Baolu wrote:
> diff --git a/drivers/iommu/intel/debugfs.c b/drivers/iommu/intel/debugfs.c > index db7a0ca73626..ed796eea4581 100644 > --- a/drivers/iommu/intel/debugfs.c > +++ b/drivers/iommu/intel/debugfs.c > @@ -344,7 +344,8 @@ static void pgtable_walk_level(struct seq_file *m, struct dma_pte *pde, > > static int show_device_domain_translation(struct device *dev, void *data) > { > - struct dmar_domain *domain = find_domain(dev); > + struct device_domain_info *info = dev_iommu_priv_get(dev); > + struct dmar_domain *domain = info->domain;
It might be nice to someday call 'struct device_domain_info' something clearer since it is now the dev_iommu_priv..
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Jason
| |