summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2016-11-30 07:52:02 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2016-12-02 04:38:31 +0100
commit6f01cc692a16405235d5c34056455b182682123c (patch)
tree2cb4cf08e86e275f223d85c9e43a3e7c7dc3da83 /mm
parentvfio/spapr: Postpone allocation of userspace version of TCE table (diff)
downloadlinux-6f01cc692a16405235d5c34056455b182682123c.tar.xz
linux-6f01cc692a16405235d5c34056455b182682123c.zip
vfio/spapr: Add a helper to create default DMA window
There is already a helper to create a DMA window which does allocate a table and programs it to the IOMMU group. However tce_iommu_take_ownership_ddw() did not use it and did these 2 calls itself to simplify error path. Since we are going to delay the default window creation till the default window is accessed/removed or new window is added, we need a helper to create a default window from all these cases. This adds tce_iommu_create_default_window(). Since it relies on a VFIO container to have at least one IOMMU group (for future use), this changes tce_iommu_attach_group() to add a group to the container first and then call the new helper. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions