Commit 8049ef97 authored by jiangdongxu's avatar jiangdongxu
Browse files

export iommu_get_resv_regions and iommu_set_resv_regions

virt inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I86ITO



----------------------------------------------------------------------

Export iommu_get_resv_regions and iommu_put_resv_regions
symbol as vhost-vdpa need to use it.

Signed-off-by: default avatarjiangdongxu <jiangdongxu1@huawei.com>
parent 50a7949b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3040,6 +3040,7 @@ void iommu_get_resv_regions(struct device *dev, struct list_head *list)
	if (ops && ops->get_resv_regions)
		ops->get_resv_regions(dev, list);
}
EXPORT_SYMBOL_GPL(iommu_get_resv_regions);

void iommu_put_resv_regions(struct device *dev, struct list_head *list)
{
@@ -3048,6 +3049,7 @@ void iommu_put_resv_regions(struct device *dev, struct list_head *list)
	if (ops && ops->put_resv_regions)
		ops->put_resv_regions(dev, list);
}
EXPORT_SYMBOL_GPL(iommu_put_resv_regions);

/**
 * generic_iommu_put_resv_regions - Reserved region driver helper