Re: [PATCH 10/18] iommu/vt-d: Add custom allocator for IOASID

2019-04-23 Thread Jean-Philippe Brucker
On 19/04/2019 05:29, Jacob Pan wrote: > If it is OK with you, I will squash my changes into your ioasid patch > and address the review comments in the v2 of this set, OK? > i.e. > [PATCH 02/18] ioasid: Add custom IOASID allocator > [PATCH 03/18] ioasid: Convert ioasid_idr to XArray That's fine

Re: [PATCH 10/18] iommu/vt-d: Add custom allocator for IOASID

2019-04-18 Thread Jacob Pan
On Thu, 18 Apr 2019 16:36:02 +0100 Jean-Philippe Brucker wrote: > On 16/04/2019 00:10, Jacob Pan wrote:[...] > >> > +   /* > >> > +    * Register a custom ASID allocator if we > >> > are running > >> > +    * in a guest, the purpose is to have a >

Re: [PATCH 10/18] iommu/vt-d: Add custom allocator for IOASID

2019-04-18 Thread Jean-Philippe Brucker
On 16/04/2019 00:10, Jacob Pan wrote:[...] >> > +   /* >> > +    * Register a custom ASID allocator if we >> > are running >> > +    * in a guest, the purpose is to have a >> > system wide PASID >> > +    * namespace among all PASID

Re: [PATCH 10/18] iommu/vt-d: Add custom allocator for IOASID

2019-04-16 Thread Jacob Pan
On Mon, 15 Apr 2019 14:37:11 -0600 Alex Williamson wrote: > On Mon, 8 Apr 2019 16:59:25 -0700 > Jacob Pan wrote: > > > When VT-d driver runs in the guest, PASID allocation must be > > performed via virtual command interface. This patch register a > > custom IOASID allocator which takes

Re: [PATCH 10/18] iommu/vt-d: Add custom allocator for IOASID

2019-04-15 Thread Jacob Pan
On Mon, 15 Apr 2019 14:37:11 -0600 Alex Williamson wrote: > On Mon, 8 Apr 2019 16:59:25 -0700 > Jacob Pan wrote: > > > When VT-d driver runs in the guest, PASID allocation must be > > performed via virtual command interface. This patch register a > > custom IOASID allocator which takes

Re: [PATCH 10/18] iommu/vt-d: Add custom allocator for IOASID

2019-04-15 Thread Alex Williamson
On Mon, 8 Apr 2019 16:59:25 -0700 Jacob Pan wrote: > When VT-d driver runs in the guest, PASID allocation must be > performed via virtual command interface. This patch register a > custom IOASID allocator which takes precedence over the default > IDR based allocator. The resulting IOASID