s390x/pci: don't use hard-coded dma range in reg_ioat
commitdf7ce0a94d9283f0656b4bc0f21566973ff649a3
authorMatthew Rosato <mjrosato@linux.ibm.com>
Fri, 3 Dec 2021 14:27:04 +0000 (3 09:27 -0500)
committerThomas Huth <thuth@redhat.com>
Fri, 17 Dec 2021 08:12:37 +0000 (17 09:12 +0100)
treeb9087ebc3f3e883883341417d284643f1e7ea3b6
parentb2892a2b9d45d25b909108ca633d19f9d8d673f5
s390x/pci: don't use hard-coded dma range in reg_ioat

Instead use the values from clp info, they will either be the hard-coded
values or what came from the host driver via vfio.

Fixes: 9670ee752727 ("s390x/pci: use a PCI Function structure")
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Message-Id: <20211203142706.427279-3-mjrosato@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/s390-pci-inst.c