Re: [PATCH 3/4] iommu/sva: Support reservation of global PASIDs

From: Jason Gunthorpe
Date: Mon Mar 20 2023 - 13:28:24 EST


On Thu, Mar 16, 2023 at 07:25:17AM +0000, Tian, Kevin wrote:

> I still doubt 'reserve' is the right interface to define.
>
> for DMA domain probably yes as it's static and one-off.
>
> but thinking louder when the same driver starts to support SIOV we
> need allocating additional PASIDs on demand which is hardly to be
> fit in a reservation interface.

Sure, it is the same thing.

It is "reserve" in the sense they are not assigned to mm structs and
not used for SVA.

Jason