The patch series creates PCI device tree(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 David's spapr-next https://github.com/dgibson/qemu/tree/spapr-next Also, patches for populating ibm,loc-code was getting very complicated with use of RTAS/HCALL Changelog V2: * Fix device tree for 64-bit encoding * Fix the class code, was failing xhci * Remove macro duplication * Fix DT fields generation for boot time device (Michael Roth) 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) Michael Roth (1): spapr_pci: fix boot-time device tree fields for pci hotplug Nikunj A Dadhania (5): spapr_pci: remove duplicate macros spapr_pci: encode missing 64-bit memory address space spapr_pci: encode class code including Prog IF register spapr_pci: enumerate and add PCI device tree spapr_pci: populate ibm,loc-code hw/ppc/spapr_pci.c | 221 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 198 insertions(+), 23 deletions(-) -- 1.8.3.1