File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -4590,6 +4590,19 @@ static struct iommu_domain identity_domain = {
4590
4590
},
4591
4591
};
4592
4592
4593
+ static struct iommu_domain * intel_iommu_domain_alloc_paging (struct device * dev )
4594
+ {
4595
+ struct dmar_domain * dmar_domain ;
4596
+ bool first_stage ;
4597
+
4598
+ first_stage = first_level_by_default (0 );
4599
+ dmar_domain = paging_domain_alloc (dev , first_stage );
4600
+ if (IS_ERR (dmar_domain ))
4601
+ return ERR_CAST (dmar_domain );
4602
+
4603
+ return & dmar_domain -> domain ;
4604
+ }
4605
+
4593
4606
const struct iommu_ops intel_iommu_ops = {
4594
4607
.blocked_domain = & blocking_domain ,
4595
4608
.release_domain = & blocking_domain ,
@@ -4599,6 +4612,7 @@ const struct iommu_ops intel_iommu_ops = {
4599
4612
.domain_alloc = intel_iommu_domain_alloc ,
4600
4613
.domain_alloc_user = intel_iommu_domain_alloc_user ,
4601
4614
.domain_alloc_sva = intel_svm_domain_alloc ,
4615
+ .domain_alloc_paging = intel_iommu_domain_alloc_paging ,
4602
4616
.probe_device = intel_iommu_probe_device ,
4603
4617
.release_device = intel_iommu_release_device ,
4604
4618
.get_resv_regions = intel_iommu_get_resv_regions ,
You can’t perform that action at this time.
0 commit comments