Re: [PATCH v4 13/22] iommu: introduce page response function

2018-04-23 Thread Jean-Philippe Brucker
On 23/04/18 13:16, Jacob Pan wrote: > I shall drop these, only put in here to match your patch. i am looking > into converting vt-d svm prq to your queued fault patch. I think it will > give both functional and performance benefit. Thanks, I just rebased my patches onto this series and am hoping t

Re: [PATCH v4 13/22] iommu: introduce page response function

2018-04-23 Thread Jacob Pan
On Mon, 23 Apr 2018 12:47:10 +0100 Jean-Philippe Brucker wrote: > On Mon, Apr 16, 2018 at 10:49:02PM +0100, Jacob Pan wrote: > [...] > > + /* > > +* Check if we have a matching page request pending to > > respond, > > +* otherwise return -EINVAL > > +*/ > > + list_for_each_entry_s

Re: [PATCH v4 13/22] iommu: introduce page response function

2018-04-23 Thread Jean-Philippe Brucker
On Mon, Apr 16, 2018 at 10:49:02PM +0100, Jacob Pan wrote: [...] > + /* > + * Check if we have a matching page request pending to respond, > + * otherwise return -EINVAL > + */ > + list_for_each_entry_safe(evt, iter, ¶m->fault_param->faults, list) { I don't think you need th

[PATCH v4 13/22] iommu: introduce page response function

2018-04-16 Thread Jacob Pan
IO page faults can be handled outside IOMMU subsystem. For an example, when nested translation is turned on and guest owns the first level page tables, device page request can be forwared to the guest for handling faults. As the page response returns by the guest, IOMMU driver on the host need to p

[PATCH v4 13/22] iommu: introduce page response function

2018-03-22 Thread Jacob Pan
IO page faults can be handled outside IOMMU subsystem. For an example, when nested translation is turned on and guest owns the first level page tables, device page request can be forwared to the guest for handling faults. As the page response returns by the guest, IOMMU driver on the host need to p