]> Git Repo - qemu.git/commit
spapr-pci: fix config space access to support bridges
authorAlexey Kardashevskiy <[email protected]>
Wed, 21 Aug 2013 06:02:15 +0000 (16:02 +1000)
committerAlexander Graf <[email protected]>
Mon, 2 Sep 2013 08:06:42 +0000 (10:06 +0200)
commit5dac82ce0d8716b54f73f96bf50811644a76e5c2
tree267766bd1132b4fa06ffa600279391f40226266d
parent779f659021d1754117bce1aab9370dc22f37ae07
spapr-pci: fix config space access to support bridges

spapr-pci config space accessors use find_dev() to find a PCI device.
However find_dev() only searched on a primary bus and did not do
recursive search through secondary buses so config space access was not
possible for devices other that on a primary bus.

This fixed find_dev() by using the PCI API pci_find_device() function.
This effectively enabled pci bridges on spapr.

Signed-off-by: Alexey Kardashevskiy <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
hw/ppc/spapr_pci.c
This page took 0.025247 seconds and 4 git commands to generate.