@@ -2187,32 +2187,6 @@ int iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group)
2187
2187
}
2188
2188
EXPORT_SYMBOL_GPL (iommu_attach_group );
2189
2189
2190
- /**
2191
- * iommu_group_replace_domain - replace the domain that a group is attached to
2192
- * @group: IOMMU group that will be attached to the new domain
2193
- * @new_domain: new IOMMU domain to replace with
2194
- *
2195
- * This API allows the group to switch domains without being forced to go to
2196
- * the blocking domain in-between.
2197
- *
2198
- * If the currently attached domain is a core domain (e.g. a default_domain),
2199
- * it will act just like the iommu_attach_group().
2200
- */
2201
- int iommu_group_replace_domain (struct iommu_group * group ,
2202
- struct iommu_domain * new_domain )
2203
- {
2204
- int ret ;
2205
-
2206
- if (!new_domain )
2207
- return - EINVAL ;
2208
-
2209
- mutex_lock (& group -> mutex );
2210
- ret = __iommu_group_set_domain (group , new_domain );
2211
- mutex_unlock (& group -> mutex );
2212
- return ret ;
2213
- }
2214
- EXPORT_SYMBOL_NS_GPL (iommu_group_replace_domain , "IOMMUFD_INTERNAL" );
2215
-
2216
2190
static int __iommu_device_set_domain (struct iommu_group * group ,
2217
2191
struct device * dev ,
2218
2192
struct iommu_domain * new_domain ,
@@ -3558,9 +3532,12 @@ EXPORT_SYMBOL_NS_GPL(iommu_detach_group_handle, "IOMMUFD_INTERNAL");
3558
3532
* @new_domain: new IOMMU domain to replace with
3559
3533
* @handle: attach handle
3560
3534
*
3561
- * This is a variant of iommu_group_replace_domain(). It allows the caller to
3562
- * provide an attach handle for the new domain and use it when the domain is
3563
- * attached.
3535
+ * This API allows the group to switch domains without being forced to go to
3536
+ * the blocking domain in-between. It allows the caller to provide an attach
3537
+ * handle for the new domain and use it when the domain is attached.
3538
+ *
3539
+ * If the currently attached domain is a core domain (e.g. a default_domain),
3540
+ * it will act just like the iommu_attach_group_handle().
3564
3541
*/
3565
3542
int iommu_replace_group_handle (struct iommu_group * group ,
3566
3543
struct iommu_domain * new_domain ,
0 commit comments