Add a get_domain_info() helper to retrieve the valid per-device iommu private data.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -714,6 +714,7 @@ int for_each_device_domain(int (*fn)(struct device_domain_info *info, · 713 unmodified lines | ||
| 714 | 714 | void iommu_flush_write_buffer(struct intel_iommu *iommu); |
| 715 | 715 | int intel_iommu_enable_pasid(struct intel_iommu *iommu, struct device *dev); |
| 716 | 716 | struct dmar_domain *find_domain(struct device *dev); |
| 717 | +struct device_domain_info *get_domain_info(struct device *dev); | |
| 717 | 718 | |
| 718 | 719 | #ifdef CONFIG_INTEL_IOMMU_SVM |
| 719 | 720 | extern void intel_svm_check(struct intel_iommu *iommu); |