Re: [PATCH v4 2/3] iommu/vt-d: Track device aux-attach with subdevice_domain_info

2021-01-07 Thread Will Deacon
On Thu, Jan 07, 2021 at 10:16:57PM +0800, Lu Baolu wrote: > On 2021/1/7 21:49, Will Deacon wrote: > > On Thu, Jan 07, 2021 at 12:03:56AM +0800, Liu Yi L wrote: > > > In the existing code, loop all devices attached to a domain does not > > > include sub-devices attached via

Re: [PATCH v4 2/3] iommu/vt-d: Track device aux-attach with subdevice_domain_info

2021-01-07 Thread Lu Baolu
Hi Will, On 2021/1/7 21:49, Will Deacon wrote: On Thu, Jan 07, 2021 at 12:03:56AM +0800, Liu Yi L wrote: In the existing code, loop all devices attached to a domain does not include sub-devices attached via iommu_aux_attach_device(). This was found by when I'm working on the below patch,

Re: [PATCH v4 2/3] iommu/vt-d: Track device aux-attach with subdevice_domain_info

2021-01-07 Thread Will Deacon
On Thu, Jan 07, 2021 at 12:03:56AM +0800, Liu Yi L wrote: > In the existing code, loop all devices attached to a domain does not > include sub-devices attached via iommu_aux_attach_device(). > > This was found by when I'm working on the below patch, There is no > device in the domain->devices