qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Matthew Rosato <mjrosato@linux.ibm.com>
Cc: thuth@redhat.com, kvm@vger.kernel.org, pmorel@linux.ibm.com,
	david@redhat.com, schnelle@linux.ibm.com, qemu-s390x@nongnu.org,
	qemu-devel@nongnu.org, pasic@linux.ibm.com,
	borntraeger@de.ibm.com, alex.williamson@redhat.com,
	mst@redhat.com, pbonzini@redhat.com, philmd@redhat.com,
	rth@twiddle.net
Subject: Re: [PATCH v4 5/5] s390x/pci: Honor DMA limits set by vfio
Date: Tue, 22 Sep 2020 12:16:50 +0200	[thread overview]
Message-ID: <20200922121650.1bdd0ea6.cohuck@redhat.com> (raw)
In-Reply-To: <1600352445-21110-6-git-send-email-mjrosato@linux.ibm.com>

On Thu, 17 Sep 2020 10:20:45 -0400
Matthew Rosato <mjrosato@linux.ibm.com> wrote:

> When an s390 guest is using lazy unmapping, it can result in a very
> large number of oustanding DMA requests, far beyond the default
> limit configured for vfio.  Let's track DMA usage similar to vfio
> in the host, and trigger the guest to flush their DMA mappings
> before vfio runs out.
> 
> Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
> ---
>  hw/s390x/s390-pci-bus.c  | 16 +++++++++++-----
>  hw/s390x/s390-pci-bus.h  |  9 +++++++++
>  hw/s390x/s390-pci-inst.c | 45 +++++++++++++++++++++++++++++++++++++++------
>  hw/s390x/s390-pci-inst.h |  3 +++
>  hw/s390x/s390-pci-vfio.c | 42 ++++++++++++++++++++++++++++++++++++++++++
>  hw/s390x/s390-pci-vfio.h |  5 +++++
>  6 files changed, 109 insertions(+), 11 deletions(-)

Reviewed-by: Cornelia Huck <cohuck@redhat.com>



  reply	other threads:[~2020-09-22 10:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-17 14:20 [PATCH v4 0/5] s390x/pci: Accomodate vfio DMA limiting Matthew Rosato
2020-09-17 14:20 ` [PATCH v4 1/5] linux-headers: update against 5.9-rc5 Matthew Rosato
2020-09-17 14:20 ` [PATCH v4 2/5] vfio: Create shared routine for scanning info capabilities Matthew Rosato
2020-09-17 14:20 ` [PATCH v4 3/5] vfio: Find DMA available capability Matthew Rosato
2020-09-17 14:20 ` [PATCH v4 4/5] s390x/pci: Add routine to get the vfio dma available count Matthew Rosato
2020-09-22 10:12   ` Cornelia Huck
2020-09-17 14:20 ` [PATCH v4 5/5] s390x/pci: Honor DMA limits set by vfio Matthew Rosato
2020-09-22 10:16   ` Cornelia Huck [this message]
2020-09-17 14:46 ` [PATCH v4 0/5] s390x/pci: Accomodate vfio DMA limiting no-reply
2020-09-17 15:05   ` Matthew Rosato

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=20200922121650.1bdd0ea6.cohuck@redhat.com \
    --to=cohuck@redhat.com \
    --cc=alex.williamson@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=david@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mjrosato@linux.ibm.com \
    --cc=mst@redhat.com \
    --cc=pasic@linux.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@redhat.com \
    --cc=pmorel@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=schnelle@linux.ibm.com \
    --cc=thuth@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).