The patch series creates PCI DT nodes in QEMU. The new hotplug code needs the device node creation in Qemu. While during boot, nodes were created in SLOF. It makes more sense to consolidate the code to one place for better maintainability.
Based on sPAPR PCI Hotplug patches by Michael Roth https://github.com/mdroth/qemu/commits/spapr-hotplug-pci Also, patches for populating ibm,loc-code was getting very complicated with use of RTAS/HCALL Changelog v1: * Correct indent problems reported by checkpatch(David Gibson) * Declare sPAPRFDT structure as local (David Gibson) * Re-arrange code to avoid multiple indentation (Alexey Kardashevskiy) Nikunj A Dadhania (2): spapr: enumerate and add PCI device tree spapr: populate ibm,loc-code hw/ppc/spapr_pci.c | 183 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 170 insertions(+), 13 deletions(-) -- 1.8.3.1