On the two machines which have the "platform bus" (ppc e500 and arm
virt) we currently treat all TYPE_SYS_BUS_DEVICE devices as being
hotpluggable in the device callbacks, and try to plug those devices
into the platform bus. This is far too broad, because only a handful
of devices are actually valid to plug into the platform bus.
Moreover, if a device which is pluggable for some other reason (like
a PCI device) happens to use a sysbus device internally as part of
its implementation, the hotplug callback will incorrectly grab that
sysbus device, probably resulting in an assertion failure.
Mostly PCI devices don't use sysbus devices internally, so the only
case we've encountered so far is the not-valid-anyway
qemu-system-ppc64 -M ppce500 -device macio-oldworld
but we might create more in future.
This series restricts hotpluggability of sysbus devices on these
platforms to those devices which are on the dynamic sysbus whitelist