aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <[email protected]>2016-11-30 17:52:02 +1100
committerMichael Ellerman <[email protected]>2016-12-02 14:38:31 +1100
commit6f01cc692a16405235d5c34056455b182682123c (patch)
tree2cb4cf08e86e275f223d85c9e43a3e7c7dc3da83 /scripts/gdb/linux/modules.py
parent39701e56f5f16ea0cf8fc9e8472e645f8de91d23 (diff)
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 <[email protected]> Reviewed-by: David Gibson <[email protected]> Acked-by: Alex Williamson <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions