s390x/pci: fix failures of dma map/unmap
commitf7c40aa1e7feb50bc4d4bc171fa811bdd9a93e51
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Sun, 19 Jun 2016 11:20:46 +0000 (19 19:20 +0800)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 11 Jul 2016 07:48:05 +0000 (11 09:48 +0200)
tree40df3ca5f514ded25a90bb5709d01fa6ea129812
parentb804e8a62a25b82637b19aea68ab7d5a7a1ce0fb
s390x/pci: fix failures of dma map/unmap

In commit d78c19b5cf4821d0c198f4132a085bdbf19dda4c, vfio code stores
the IOMMU's offset_within_address_space and adjusts the IOVA before
calling vfio_dma_map/vfio_dma_unmap. But s390_translate_iommu already
considers the base address of an IOMMU memory region.

Thus we use pal as the size and 0x0 as the base address to initialize
IOMMU memory subregion.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-pci-bus.c