Re: [PATCH rc 1/8] iommu/vt-d: Track nested domains in parent

2024-02-08 Thread Yi Liu
On 2024/2/8 16:28, Tian, Kevin wrote: From: Liu, Yi L Sent: Thursday, February 8, 2024 4:23 PM static void intel_nested_domain_free(struct iommu_domain *domain) { + struct dmar_domain *dmar_domain = to_dmar_domain(domain); + struct dmar_domain *s2_domain = dmar_domain->s2_dom

RE: [PATCH rc 1/8] iommu/vt-d: Track nested domains in parent

2024-02-08 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, February 8, 2024 4:23 PM > > static void intel_nested_domain_free(struct iommu_domain *domain) > { > + struct dmar_domain *dmar_domain = to_dmar_domain(domain); > + struct dmar_domain *s2_domain = dmar_domain->s2_domain; > + > + spin_lock(&s2_doma

[PATCH rc 1/8] iommu/vt-d: Track nested domains in parent

2024-02-08 Thread Yi Liu
Today the parent domain (s2_domain) is unaware of which DID's are used by and which devices are attached to nested domains (s1_domain) nested on it. This leads to a problem that some operations (flush iotlb/devtlb and enable dirty tracking) on parent domain only apply to DID's and devices directly