Re: [Xen-devel] [RFC PATCH 2/7] iommu: add iommu_lookup_page to lookup guest gfn for a particular IOMMU mapping

2016-02-17 Thread Konrad Rzeszutek Wilk
On Wed, Feb 10, 2016 at 10:10:30AM +, Malcolm Crossley wrote: > If IOMMU driver does not implement lookup_page function then it returns > -ENOMEM. That is a very odd return code. Could you explain why -ENOMEM? > > Returns 0 on success and any other value on failure. > > Signed-off-by:

[Xen-devel] [RFC PATCH 2/7] iommu: add iommu_lookup_page to lookup guest gfn for a particular IOMMU mapping

2016-02-10 Thread Malcolm Crossley
If IOMMU driver does not implement lookup_page function then it returns -ENOMEM. Returns 0 on success and any other value on failure. Signed-off-by: Malcolm Crossley -- Cc: jbeul...@suse.com Cc: xen-devel@lists.xen.org --- xen/drivers/passthrough/iommu.c | 21