diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-05-24 01:53:51 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-17 04:41:51 (GMT) |
commit | d536202202eef1102a90ece32d91c20dffdbeede (patch) | |
tree | 870ff3b411bf9cc463af4fb062ea67dd55aa14ea /drivers/platform | |
parent | d385ed7ad30737aa649034ded83afdbef65217d1 (diff) | |
download | linux-d536202202eef1102a90ece32d91c20dffdbeede.tar.xz |
vfio/spapr_tce: Set window when adding additional groups to container
[ Upstream commit 930a42ded3fede7ca3acafc9153f4f2d0f56a92c ]
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 6f01cc692a16 ("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: 6f01cc692a16 ("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>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions