Files
linux/drivers
Alexey Kardashevskiy d536202202 vfio/spapr_tce: Set window when adding additional groups to container
[ Upstream commit 930a42ded3 ]

If a container already has a group attached, attaching a new group
should just program already created IOMMU tables to the hardware via
the iommu_table_group_ops::set_window() callback.

However commit 6f01cc692a ("vfio/spapr: Add a helper to create
default DMA window") did not just simplify the code but also removed
the set_window() calls in the case of attaching groups to a container
which already has tables so it broke VFIO PCI hotplug.

This reverts set_window() bits in tce_iommu_take_ownership_ddw().

Fixes: 6f01cc692a ("vfio/spapr: Add a helper to create default DMA window")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-17 06:41:51 +02:00
..
2016-12-05 14:53:46 -05:00
2017-04-21 09:31:23 +02:00
2017-05-20 14:28:41 +02:00
2017-06-17 06:41:50 +02:00
2016-09-27 12:33:47 +02:00
2017-02-23 17:44:36 +01:00
2016-09-20 20:57:12 +10:00
2017-04-21 09:31:24 +02:00