These patches add realize and unrealize interfaces to BusState just like we have for DeviceState. 1/3 and 2/3 implement the interface and attempt to integrate it to the existing DeviceState call path. 3/3 is an example user of the interface, pci in this case. Please see individual patches for more details.
Bandan Das (3): qdev: add realize/unrealize interfaces for BusState qdev: Integrate the bus realized property to get called when device realized property changes pci: move vmstate_pcibus registration/unregistration to realize and unrealize interfaces hw/core/qdev.c | 130 ++++++++++++++++++++++++++++++++++++++++++++----- hw/pci/pci.c | 49 +++++++++++-------- include/hw/qdev-core.h | 8 +++ 3 files changed, 153 insertions(+), 34 deletions(-) -- 1.8.3.1