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>