Re: [PATCH v2 1/3] iommu/uapi: Define uapi version and capabilities

From: Christoph Hellwig
Date: Fri Mar 27 2020 - 03:47:12 EST


On Fri, Mar 27, 2020 at 02:49:55AM +0000, Tian, Kevin wrote:
> If those API calls are inter-dependent for composing a feature (e.g. SVA),
> shouldn't we need a way to check them together before exposing the
> feature to the guest, e.g. through a iommu_get_uapi_capabilities interface?

Yes, that makes sense. The important bit is to have a capability flags
and not version numbers.