[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c9b89cd9-081b-6f35-7076-02c20e26e172@linux.ibm.com>
Date: Thu, 19 May 2022 14:30:23 -0400
From: Matthew Rosato <mjrosato@...ux.ibm.com>
To: jgg@...dia.com, joro@...tes.org, alex.williamson@...hat.com
Cc: will@...nel.org, cohuck@...hat.com, borntraeger@...ux.ibm.com,
schnelle@...ux.ibm.com, gerald.schaefer@...ux.ibm.com,
farman@...ux.ibm.com, iommu@...ts.linux-foundation.org,
linux-s390@...r.kernel.org, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iommu/s390: tolerate repeat attach_dev calls
On 5/19/22 2:29 PM, Matthew Rosato wrote:
> 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@...ux.ibm.com>
> ---
Tested in conjuction with
https://lore.kernel.org/kvm/0-v1-9cfc47edbcd4+13546-vfio_dma_owner_fix_jgg@nvidia.com/
Along with that patch, vfio{-pci,-ap,-ccw} on s390x for -next seem happy
again.
Powered by blists - more mailing lists