Re: [PATCH v4 5/5] s390x/pci: Honor DMA limits set by vfio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 17 Sep 2020 10:20:45 -0400
Matthew Rosato <mjrosato@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>
> ---
>  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@xxxxxxxxxx>




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux