All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] propose to implement power device
@ 2013-03-11  0:38 li guang
  0 siblings, 0 replies; only message in thread
From: li guang @ 2013-03-11  0:38 UTC (permalink / raw)
  To: Anthony Liguori, Peter Maydell, Michael Tokarev, qemu-devel,
	Paul Fox, Wenchao Xia

Hi, all

By now all devices of QEMU do not have much more
power management consideration, for example, if
system do suspend, it will call all registered notifiers,
this was loosely required, and the code to do power management
state transition seems just do 'ugly emulation', rather than be
conscious with whole system devices, same condition with reset(it
has been embedded in DeviceClass, good!),
shutdown, in real world, commonly all devices' power are controlled
by a power chip, then all power sequence can be done just
issue commands to this chip.
so, I come across an idea to implement qdev'ed power device, and
make all qdev struct of devices aware of self power management(add
reset, suspend, shutdown ... filed for DeviceClass), this will
bring tidy power management, and the emulation will more like what
happened in real world.
Hope I've expressed my idea clearly, if you have any questions, let me
know, if get your permission, I'll step ahead to do this power
chip emulation work.

Thanks!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-11  0:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11  0:38 [Qemu-devel] propose to implement power device li guang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.