OSDN Git Service

KVM: PPC: iommu: Unify TCE checking
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 22 Mar 2017 04:21:55 +0000 (15:21 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 20 Apr 2017 01:39:21 +0000 (11:39 +1000)
commitb1af23d836f811137d504d14d4cbdd01929dec34
tree384ee7a31114a4311b711f5cc582285d06ca7271
parentda6f59e19233efdda58f196afbae8e05f6030d7f
KVM: PPC: iommu: Unify TCE checking

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 <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/iommu.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kernel/iommu.c
arch/powerpc/kvm/book3s_64_vio_hv.c