From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEqij-0003jK-Ch for qemu-devel@nongnu.org; Sun, 10 Mar 2013 20:36:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEqih-0000L1-8f for qemu-devel@nongnu.org; Sun, 10 Mar 2013 20:36:05 -0400 Received: from [222.73.24.84] (port=64075 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEqig-0000Gd-V2 for qemu-devel@nongnu.org; Sun, 10 Mar 2013 20:36:03 -0400 From: li guang In-Reply-To: <513898EF.9060100@linux.vnet.ibm.com> References: <51358208.1020409@msgid.tls.msk.ru> <87r4jsx7b6.fsf@codemonkey.ws> <1362627657.21129.64.camel@liguang.fnst.cn.fujitsu.com> <513898EF.9060100@linux.vnet.ibm.com> Date: Mon, 11 Mar 2013 08:34:46 +0800 Message-ID: <1362962086.21129.65.camel@liguang.fnst.cn.fujitsu.com> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] propose to implement ower device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: Peter Maydell , Michael Tokarev , qemu-devel , Anthony Liguori , paul@codesourcery.com =E5=9C=A8 2013-03-07=E5=9B=9B=E7=9A=84 21:41 +0800=EF=BC=8CWenchao Xia=E5= =86=99=E9=81=93=EF=BC=9A > =E4=BA=8E 2013-3-7 11:40, li guang =E5=86=99=E9=81=93: > > Hi, Anthony and 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! > > > > >=20 > Hi, Guang > it seems the mail was sent as a child mail of "Default guest RAM > size". The topic is interesting, suggest resend it. OK