diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-06-05 16:34:58 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-11 15:14:55 +1000 |
commit | 9b14a1ff8657d3ee844f8987482bc367a716848c (patch) | |
tree | 324f56b9620881a442a4542fd6628e1885e807e5 /drivers/usb/misc/yurex.c | |
parent | 8aca92d82d9f259e0b6b0c81e5eb9baaf471e6ad (diff) | |
download | linux-9b14a1ff8657d3ee844f8987482bc367a716848c.tar.bz2 |
vfio: powerpc/spapr: Move page pinning from arch code to VFIO IOMMU driver
This moves page pinning (get_user_pages_fast()/put_page()) code out of
the platform IOMMU code and puts it to VFIO IOMMU driver where it belongs
to as the platform code does not deal with page pinning.
This makes iommu_take_ownership()/iommu_release_ownership() deal with
the IOMMU table bitmap only.
This removes page unpinning from iommu_take_ownership() as the actual
TCE table might contain garbage and doing put_page() on it is undefined
behaviour.
Besides the last part, the rest of the patch is mechanical.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[aw: for the vfio related changes]
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/usb/misc/yurex.c')
0 files changed, 0 insertions, 0 deletions