On 21 March 2013 00:36, li guang <lig.f...@cn.fujitsu.com> wrote: > 在 2013-03-20三的 10:50 +0000,Peter Maydell写道: >> The devices should just implement appropriate signals/connections >> if they have a means of talking to a power controller, and the >> board model should wire them up. That's all. > > Hmm, can you give some demo of signals implementation? > (I'm hesitating to say do you mean signal() or sigaction()? :) )
No, I don't mean signals in the POSIX signals sense. For a simple yes/no kind of connection, qemu_irq is what we currently use. If you need something more complicated QOM should be able to do that but I don't have an example to hand. -- PMM