diff options
| author | Greg Kurz | 2019-06-18 10:42:53 +0200 |
|---|---|---|
| committer | David Gibson | 2019-07-02 01:43:58 +0200 |
| commit | 7e10b57dd9e0d2570ecccca0e2f418618f303d8c (patch) | |
| tree | 88db577888820b54b50068a134746e697444fee7 /linux-headers/linux | |
| parent | target/ppc: remove getVSR()/putVSR() from mem_helper.c (diff) | |
| download | qemu-7e10b57dd9e0d2570ecccca0e2f418618f303d8c.tar.gz qemu-7e10b57dd9e0d2570ecccca0e2f418618f303d8c.tar.xz qemu-7e10b57dd9e0d2570ecccca0e2f418618f303d8c.zip | |
spapr_pci: Fix DRC owner in spapr_dt_pci_bus()
spapr_dt_drc() scans the aliases of all DRConnector objects and filters
the ones that it will use to generate OF properties according to their
owner and type.
Passing bus->parent_dev _works_ if bus belongs to a PCI bridge, but it is
NULL if it is the PHB's root bus. This causes all allocated PCI DRCs to
be associated to all PHBs (visible in their "ibm,drc-types" properties).
As a consequence, hot unplugging a PHB results in PCI devices from the
other PHBs to be unplugged as well, and likely confuses the guest.
Use the same logic as in add_drcs() to ensure the correct owner is passed
to spapr_dt_drc().
Fixes: 14e714900f6b "spapr: Allow hot plug/unplug of PCI bridges and devices under PCI bridges"
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <156084737348.512412.3552825999605902691.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions
