vfio/spapr: Use IOMMU pageshift rather than pagesize
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 17 Jul 2018 07:19:12 +0000 (17:19 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Jul 2018 06:17:07 +0000 (16:17 +1000)
commit1463edca6734d42ab4406fa2896e20b45478ea36
treeed638bb0b8e1a83288d196343a9f38a35ad11b12
parent941d810725ad48cc21948f4cff8cf70fa2a67cf9
vfio/spapr: Use IOMMU pageshift rather than pagesize

The size is always equal to 1 page so let's use this. Later on this will
be used for other checks which use page shifts to check the granularity
of access.

This should cause no behavioral change.

Cc: stable@vger.kernel.org # v4.12+
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/vfio/vfio_iommu_spapr_tce.c