[PATCH 3/4] iommu/ioasid: Add custom allocators

2019-09-18 Thread Jacob Pan
IOASID allocation may rely on platform specific methods. One use case is that when running in the guest, in order to obtain system wide global IOASIDs, emulated allocation interface is needed to communicate with the host. Here we call these platform specific allocators custom allocators. Custom IO

Re: [PATCH 3/4] iommu/ioasid: Add custom allocators

2019-09-20 Thread Jean-Philippe Brucker
On Wed, Sep 18, 2019 at 04:26:33PM -0700, Jacob Pan wrote: > +/* > + * struct ioasid_allocator_data - Internal data structure to hold information > + * about an allocator. There are two types of allocators: > + * > + * - Default allocator always has its own XArray to track the IOASIDs > allocated.

Re: [PATCH 3/4] iommu/ioasid: Add custom allocators

2019-09-21 Thread Jacob Pan
On Fri, 20 Sep 2019 18:35:58 +0200 Jean-Philippe Brucker wrote: > On Wed, Sep 18, 2019 at 04:26:33PM -0700, Jacob Pan wrote: > > +/* > > + * struct ioasid_allocator_data - Internal data structure to hold > > information > > + * about an allocator. There are two types of allocators: > > + * > > +