On Mon, Jun 17, 2019 at 08:27:04PM +0200, Paolo Bonzini wrote: > On 17/06/19 19:58, Kevin Wolf wrote: > > Of course, this makes me think that maybe for the actual proper > > solution, VM state change handlers should really be a feature that qdev > > provides for devices. Then if a HBA doesn't have anything else to do, > > the qdev core would just recurse into the children right away; if it has > > something to do, it would disable the device after its children, and > > re-enable it before the children. > > This was more or less my reply to this version of the patch. :)
I'll send a new patch that is a combination of these ideas. Stefan
signature.asc
Description: PGP signature
