vfio/type1: Change success value of vaddr_get_pfn()
authorDaniel Jordan <daniel.m.jordan@oracle.com>
Fri, 19 Feb 2021 16:13:03 +0000 (11:13 -0500)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Feb 2021 23:30:44 +0000 (16:30 -0700)
commitbe16c1fd99f41abebc0bf965d5d29cd18c9d271e
tree248cdb9f78e14389a8a97d0156640d0a1ae546b6
parent07956b6269d3ed05d854233d5bb776dca91751dd
vfio/type1: Change success value of vaddr_get_pfn()

vaddr_get_pfn() simply returns 0 on success.  Have it report the number
of pfns successfully gotten instead, whether from page pinning or
follow_fault_pfn(), which will be used later when batching pinning.

Change the last check in vfio_pin_pages_remote() for consistency with
the other two.

Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c