powerpc/iommu: Add ppc_md.tce_get() callback for use by VFIO
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 4 Sep 2012 15:19:35 +0000 (15:19 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 10 Sep 2012 04:36:17 +0000 (14:36 +1000)
commit11f63d3fb9c4257b1f005db8d11deba9f992bdf6
treea9ab9deefe703cd00c020cba522b4700a64f775b
parent4715fed600109e0bd3d6cfa2b925a643173a08b4
powerpc/iommu: Add ppc_md.tce_get() callback for use by VFIO

The upcoming VFIO support requires a way to know which
entry in the TCE map is not empty in order to do cleanup
at QEMU exit/crash. This patch adds such functionality
to POWERNV platform code.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci.c