Re: [PATCH 08/12] iommufd/device: Report supported hwpt_types

From: Jason Gunthorpe
Date: Fri Mar 10 2023 - 12:53:16 EST


On Thu, Mar 09, 2023 at 11:45:05PM -0800, Nicolin Chen wrote:

> Yea, that's what I thought too. Yet, I am wondering a bit if
> it'd be better to have an ops->hwpt_type in the drivers, v.s.
> maintaining a potentially big chunk of the array here.

It probably is, some ops->iommufd_data.XX is not a bad idea

Jason