On Wed, Jan 09, 2013 at 11:53:00AM +0100, Paolo Bonzini wrote: > Il 09/01/2013 11:22, Michael S. Tsirkin ha scritto: > > > It's possible. I'll move the SCSI bus away from qdev reset. > > > Anthony/Michael, can you help doing the same with PCIDevice? And > > > perhaps Peter and Andreas with sysbus? > > > > I'm not sure what would you like to change with PCIDevice. > > Replace the DeviceState reset method with one in PCIDevice, and call it > from the PCI bus reset. > > Paolo
You are talking about the call to qdev_reset_all(&dev->qdev) in pci_device_reset, and you want to detect, there, that device is a bridge and replace qdev_reset_all(&dev->qdev) with cast and call to pci_bus_reset for the secondary bus? -- MST