All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joerg Roedel <joro@8bytes.org>
To: Matthew Rosato <mjrosato@linux.ibm.com>
Cc: linux-s390@vger.kernel.org, farman@linux.ibm.com,
	kvm@vger.kernel.org, schnelle@linux.ibm.com, cohuck@redhat.com,
	iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org,
	alex.williamson@redhat.com, jgg@nvidia.com,
	gerald.schaefer@linux.ibm.com, borntraeger@linux.ibm.com,
	will@kernel.org
Subject: Re: [PATCH] iommu/s390: tolerate repeat attach_dev calls
Date: Fri, 20 May 2022 09:57:44 +0200	[thread overview]
Message-ID: <YodJ+OwxsP5PPO3V@8bytes.org> (raw)
In-Reply-To: <20220519182929.581898-1-mjrosato@linux.ibm.com>

On Thu, May 19, 2022 at 02:29:29PM -0400, 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@linux.ibm.com>
> ---
>  drivers/iommu/s390-iommu.c | 15 ++++++++++++---
>  1 file changed, 12 insertions(+), 3 deletions(-)

Applied to the vfio-notifier-fix topic branch, thanks.

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

WARNING: multiple messages have this Message-ID (diff)
From: Joerg Roedel <joro@8bytes.org>
To: Matthew Rosato <mjrosato@linux.ibm.com>
Cc: jgg@nvidia.com, will@kernel.org, alex.williamson@redhat.com,
	cohuck@redhat.com, borntraeger@linux.ibm.com,
	schnelle@linux.ibm.com, gerald.schaefer@linux.ibm.com,
	farman@linux.ibm.com, iommu@lists.linux-foundation.org,
	linux-s390@vger.kernel.org, kvm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iommu/s390: tolerate repeat attach_dev calls
Date: Fri, 20 May 2022 09:57:44 +0200	[thread overview]
Message-ID: <YodJ+OwxsP5PPO3V@8bytes.org> (raw)
In-Reply-To: <20220519182929.581898-1-mjrosato@linux.ibm.com>

On Thu, May 19, 2022 at 02:29:29PM -0400, 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@linux.ibm.com>
> ---
>  drivers/iommu/s390-iommu.c | 15 ++++++++++++---
>  1 file changed, 12 insertions(+), 3 deletions(-)

Applied to the vfio-notifier-fix topic branch, thanks.


  parent reply	other threads:[~2022-05-20  7:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-19 18:29 [PATCH] iommu/s390: tolerate repeat attach_dev calls Matthew Rosato
2022-05-19 18:29 ` Matthew Rosato
2022-05-19 18:30 ` Matthew Rosato
2022-05-19 18:30   ` Matthew Rosato
2022-05-19 22:58 ` Jason Gunthorpe via iommu
2022-05-19 22:58   ` Jason Gunthorpe
2022-05-20  7:57 ` Joerg Roedel [this message]
2022-05-20  7:57   ` Joerg Roedel
2022-05-20 10:30 ` Niklas Schnelle
2022-05-20 10:30   ` Niklas Schnelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YodJ+OwxsP5PPO3V@8bytes.org \
    --to=joro@8bytes.org \
    --cc=alex.williamson@redhat.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=farman@linux.ibm.com \
    --cc=gerald.schaefer@linux.ibm.com \
    --cc=iommu@lists.linux-foundation.org \
    --cc=jgg@nvidia.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mjrosato@linux.ibm.com \
    --cc=schnelle@linux.ibm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.