s390x/pci: Honor DMA limits set by vfio
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> Reviewed-by:
Cornelia Huck <cohuck@redhat.com> [aw: non-Linux build fixes] Signed-off-by:
Alex Williamson <alex.williamson@redhat.com>
Showing
- hw/s390x/s390-pci-bus.c 11 additions, 5 deletionshw/s390x/s390-pci-bus.c
- hw/s390x/s390-pci-inst.c 39 additions, 6 deletionshw/s390x/s390-pci-inst.c
- hw/s390x/s390-pci-vfio.c 42 additions, 0 deletionshw/s390x/s390-pci-vfio.c
- include/hw/s390x/s390-pci-bus.h 9 additions, 0 deletionsinclude/hw/s390x/s390-pci-bus.h
- include/hw/s390x/s390-pci-inst.h 3 additions, 0 deletionsinclude/hw/s390x/s390-pci-inst.h
- include/hw/s390x/s390-pci-vfio.h 12 additions, 0 deletionsinclude/hw/s390x/s390-pci-vfio.h
Please register or sign in to comment