Alexey Kardashevskiy 9eda7d373e pci: Introduce helper to retrieve a PCI device's DMA address space
A PCI device's DMA address space (possibly an IOMMU) is returned by a
method on the PCIBus.  At the moment that only has one caller, so the
method is simply open coded.  We'll need another caller for VFIO, so
this patch introduces a helper/wrapper function.

If IOMMU is not set, the pci_device_iommu_address_space() function
returns the parent's IOMMU skipping the "bus master" address space as
otherwise proper emulation would require more effort for no benefit.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[aik: added inheritance from parent if iommu is not set for the current bus]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-08-27 08:30:48 +03:00
..
2013-04-24 11:50:18 -05:00
2013-06-07 14:55:33 +02:00
2013-04-29 08:27:47 -05:00
2013-07-29 21:06:28 +02:00
2013-05-01 13:06:07 +02:00
2013-07-25 08:12:27 -05:00
2013-07-29 21:06:27 +02:00
2013-06-03 15:41:27 +00:00
2013-05-01 13:06:07 +02:00
2013-06-27 15:38:35 -05:00
2013-08-21 00:18:39 +03:00
2013-05-01 20:55:21 +04:00
2013-06-24 08:41:07 +02:00
2013-04-16 10:04:23 +02:00