Re: [PATCH rc 8/8] iommu/vt-d: Add missing dirty tracking set for parent domain

2024-02-08 Thread Yi Liu
On 2024/2/8 16:53, Tian, Kevin wrote: From: Liu, Yi L Sent: Thursday, February 8, 2024 4:23 PM @@ -4760,6 +4790,12 @@ static int intel_iommu_set_dirty_tracking(struct iommu_domain *domain, if (ret) goto err_unwind; + if (dmar_domain->nested_parent) { +

RE: [PATCH rc 8/8] iommu/vt-d: Add missing dirty tracking set for parent domain

2024-02-08 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, February 8, 2024 4:23 PM > > @@ -4760,6 +4790,12 @@ static int intel_iommu_set_dirty_tracking(struct > iommu_domain *domain, > if (ret) > goto err_unwind; > > + if (dmar_domain->nested_parent) { > + ret = parent_domain_set_d

[PATCH rc 8/8] iommu/vt-d: Add missing dirty tracking set for parent domain

2024-02-08 Thread Yi Liu
Setting dirty tracking for a s2 domain requires to loop all the related devices and set the dirty tracking enable bit in the PASID table entry. This includes the devices that are attached to the nested domains of a s2 domain if this s2 domain is used as parent. However, the existing dirty tracking