summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorMatthew Rosato <mjrosato@linux.ibm.com>2022-05-19 14:29:29 -0400
committerJoerg Roedel <jroedel@suse.de>2022-05-20 09:57:09 +0200
commitfa7e9ecc5e1c1a1e8aa7014b2749b22edc801dd2 (patch)
tree92bcb6f7f815e4cc3d75071f14f61a1b8b8e342c /drivers/pci
parent0286300e60455534b23f4b86ce79247829ceddb8 (diff)
downloadlinux-stable-fa7e9ecc5e1c1a1e8aa7014b2749b22edc801dd2.tar.gz
linux-stable-fa7e9ecc5e1c1a1e8aa7014b2749b22edc801dd2.tar.bz2
linux-stable-fa7e9ecc5e1c1a1e8aa7014b2749b22edc801dd2.zip
iommu/s390: Tolerate repeat attach_dev calls
Since commit 0286300e6045 ("iommu: iommu_group_claim_dma_owner() must always assign a domain") s390-iommu will get called to allocate multiple unmanaged iommu domains for a vfio-pci device -- however the current s390-iommu logic tolerates only one. Recognize that multiple domains can be allocated and handle switching between DMA or different iommu domain tables during attach_dev. Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20220519182929.581898-1-mjrosato@linux.ibm.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions