在 2013-04-08一的 11:53 +0200,Paolo Bonzini写道: > Il 08/04/2013 02:18, li guang ha scritto: > > In short, the purpose is to implement a power control process > > just like real world(hardware platform), > > a power chip(controller) connect power signals to other devices, > > and devices can do power (on, off, ...) controlled by power > > chip(controller). > > Is this reasonable? > > It may be reasonable, but it will be board-dependent. The meaning of > "power on/power off" varies wildly depending on the kind of device, the > platform, etc. > > Similarly, "reset" is very different from a power cycle. > > Are you trying to implement D-states?
Hmm ... maybe, but, S-states may be more exactly, S0 -> power on S3 -> suspend S5 -> power off but that are conceptual, actually, I just want centralize controlling of power state transition of whole emulated machine.