From: Andreas Färber <andreas.faer...@web.de> Hello Anthony and Paolo,
Here's a respin of the patch that prompted the big PCI host bridge refactoring. It embeds PCIBus and PCIDevice into the host bridge state QOM-style. Question: Is the use of object_unref() correct and future-proof now? I'm also adding a second patch even more as an example of what is possible with QOM types and now QOM realize: New SysBusDevices (e.g., IDE refactoring) can get a realizefn straight away! Regards, Andreas v1 -> v2: * Rebased onto PCI header reorganization (pci_internal.h -> pci/pci_bus.h). * Replaced privatized object_finalize() with object_unref(). * Added patch converting initfn to realizefn. Cc: Anthony Liguori <anth...@codemonkey.ws> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Markus Armbruster <arm...@redhat.com> Cc: Alexander Graf <ag...@suse.de> Cc: Hervé Poussineau <hpous...@reactos.org> Andreas Färber (2): prep_pci: Create PCIBus and PCIDevice in-place prep_pci: Convert to QOM realizefn hw/prep_pci.c | 65 +++++++++++++++++++++++++++++++++++++++++++-------------- 1 Datei geändert, 49 Zeilen hinzugefügt(+), 16 Zeilen entfernt(-) -- 1.7.10.4