]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: Allow hot plug/unplug of PCI bridges and devices under PCI bridges
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 5 Apr 2019 05:34:19 +0000 (16:34 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Jun 2019 00:41:49 +0000 (10:41 +1000)
commit14e714900f6b90b35ae2b040d300f95581a416f4
tree0f2ada1dbeca5d954275c7b5098035fa983bc58f
parentcb600087060897ca73d231f3edbe7f70ae3ce67f
spapr: Allow hot plug/unplug of PCI bridges and devices under PCI bridges

The pseries machine type already allows PCI hotplug and unplug via the
PAPR mechanism, but only on the root bus of each PHB.  This patch extends
this to allow PCI to PCI bridges to be hotplugged, and devices to be
hotplugged or unplugged under P2P bridges.

For now we disallow hot unplugging P2P bridges.  I tried doing that, but
haven't managed to get it working, I think due to some guest side problems
that need further investigation.

To do this we dynamically construct DRCs when bridges are hot (or cold)
added, which can in turn be used to hotplug devices under the bridge.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
hw/ppc/spapr_pci.c