Re: [PATCH v2 1/6] iommu: Export iommu_{get,put}_resv_regions()

From: Joerg Roedel
Date: Mon Dec 06 2021 - 06:56:38 EST


On Tue, Nov 16, 2021 at 05:06:20PM +0800, Yicong Yang wrote:
> Export iommu_{get,put}_resv_regions() to the modules so that the driver
> can retrieve and use the reserved regions of the device.

Why should any driver bother? These functions are only used by the iommu
core to call into iommu drivers to get information about needed direct
mappings. Why drivers need this information belongs into this commit
message.

Regards,

Joerg