diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-07-05 09:19:15 +1000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-09-10 11:05:40 +0300 |
commit | 5af2ae2305143f1805a696f9554231e1fc246edc (patch) | |
tree | aaba2cbe68d9909473b4cfcaa860b1cd46bb9a0c /qmp-commands.hx | |
parent | fc04a730b7e60f4a62d6260d4eb9c537d1d3643f (diff) | |
download | qemu-5af2ae2305143f1805a696f9554231e1fc246edc.zip qemu-5af2ae2305143f1805a696f9554231e1fc246edc.tar.gz qemu-5af2ae2305143f1805a696f9554231e1fc246edc.tar.bz2 |
pci: Fix pci_device_iommu_address_space() bus propagation
he current code walks up the bus tree for an iommu, however it passes
to the iommu_fn() callback the bus/devfn of the immediate child of
the level where the callback was found, rather than the original
bus/devfn where the search started from.
This prevents iommu's like POWER8 (and in fact also Q35) to properly
provide an address space for a subset of devices that aren't immediate
children of the iommu.
PCIe carries the originator bdfn acccross to the iommu on all DMA
transactions, so we must be able to properly identify devices at all
levels.
This changes the function pci_device_iommu_address_space() to pass
the original pointers to the iommu_fn() callback instead.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
0 files changed, 0 insertions, 0 deletions