On Tue, Apr 18, 2017 at 04:27:23PM +0300, Marcel Apfelbaum wrote: [...] > > @@ -431,7 +430,7 @@ PCIBus *pci_register_bus(DeviceState *parent, const > > char *name, > > { > > PCIBus *bus; > > > > - bus = pci_bus_new(parent, name, address_space_mem, > > + bus = pci_bus_new(PCI_HOST_BRIDGE(parent), name, address_space_mem, > > If you request the parent to be PCI_HOST_BRIDGE, why don't you change also > the signature of > pci_register_bus ?
I do it on patch 4/7. -- Eduardo