vfio/spapr: Use IOMMU pageshift rather than pagesize
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 17 Jul 2018 07:19:12 +0000 (17:19 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jul 2018 09:25:08 +0000 (11:25 +0200)
commit9a2e4a01ded2c88e11ef6640443462862c990a9b
tree6d6b03906cb9bc3096034869a150169eda83d85e
parenta5b8eae536723d3377d21fe60cb2f294332bb322
vfio/spapr: Use IOMMU pageshift rather than pagesize

commit 1463edca6734d42ab4406fa2896e20b45478ea36 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vfio/vfio_iommu_spapr_tce.c