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

2019-10-02 Thread Jacob Pan
On Wed, 2 Oct 2019 18:18:25 +0200 Jean-Philippe Brucker wrote: > Hi Jacob, > > I have four tiny comments below but the patch looks great otherwise, > no major concern from me. > > On Sat, Sep 21, 2019 at 05:07:49PM -0700, Jacob Pan wrote: > > +/* > > + * struct ioasid_allocator_data - Internal

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

2019-10-02 Thread Jean-Philippe Brucker
Hi Jacob, I have four tiny comments below but the patch looks great otherwise, no major concern from me. On Sat, Sep 21, 2019 at 05:07:49PM -0700, Jacob Pan wrote: > +/* > + * struct ioasid_allocator_data - Internal data structure to hold information > + * about an allocator. There are two types

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

2019-09-21 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