Alexey Kardashevskiy [off-list ref] writes:
This reworks helpers for checking TCE update parameters in way they
can be used in KVM.
This should cause no behavioral change.
Signed-off-by: Alexey Kardashevskiy <redacted>
Reviewed-by: David Gibson <redacted>
---
Changes:
v6:
* s/tce/gpa/ as TCE without permission bits is a GPA and this is what is
passed everywhere
---
arch/powerpc/include/asm/iommu.h | 20 +++++++++++++++-----
arch/powerpc/include/asm/kvm_ppc.h | 6 ++++--
arch/powerpc/kernel/iommu.c | 37 +++++++++++++------------------------
arch/powerpc/kvm/book3s_64_vio_hv.c | 31 +++++++------------------------
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
cheers