KVM: PPC: Book3S: Use correct page shift in H_STUFF_TCE
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 14 May 2018 10:00:27 +0000 (20:00 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 17 May 2018 06:41:51 +0000 (16:41 +1000)
commitc6b61661d229e42b58d5e511191e925d105a5cce
treea9402e6153bc020a140960a3680b6caca4c3b52b
parent48e70b1ce667dc032f9166cc00ddb594ecc0065e
KVM: PPC: Book3S: Use correct page shift in H_STUFF_TCE

The other TCE handlers use page shift from the guest visible TCE table
(described by kvmppc_spapr_tce_iommu_table) so let's make H_STUFF_TCE
handlers do the same thing.

This should cause no behavioral change now but soon we will allow
the iommu_table::it_page_shift being different from from the emulated
table page size so this will play a role.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_vio.c
arch/powerpc/kvm/book3s_64_vio_hv.c