From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USClf-0006wd-OQ for qemu-devel@nongnu.org; Tue, 16 Apr 2013 16:46:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USCle-0002oL-J1 for qemu-devel@nongnu.org; Tue, 16 Apr 2013 16:46:19 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:37145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USCle-0002jM-1S for qemu-devel@nongnu.org; Tue, 16 Apr 2013 16:46:18 -0400 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 17 Apr 2013 06:41:18 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id D3D1D357804A for ; Wed, 17 Apr 2013 06:46:07 +1000 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r3GKjMUI12911016 for ; Wed, 17 Apr 2013 06:45:23 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r3GKjRNE025723 for ; Wed, 17 Apr 2013 06:45:28 +1000 From: Anthony Liguori In-Reply-To: <51656EB5.6030807@redhat.com> References: <1365136091-26148-1-git-send-email-lig.fnst@cn.fujitsu.com> <1365136091-26148-4-git-send-email-lig.fnst@cn.fujitsu.com> <515EBA2A.1090005@redhat.com> <1365380334.5674.5.camel@liguang.fnst.cn.fujitsu.com> <516293A5.7030900@redhat.com> <1365492852.9553.14.camel@liguang.fnst.cn.fujitsu.com> <5163C6B4.3070507@redhat.com> <1365495988.9553.62.camel@liguang.fnst.cn.fujitsu.com> <5163F63D.8090109@redhat.com> <1365552587.9553.79.camel@liguang.fnst.cn.fujitsu.com> <51655697.2020201@suse.de> <51656EB5.6030807@redhat.com> Date: Tue, 16 Apr 2013 15:45:21 -0500 Message-ID: <87r4iai4ri.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH][RFC v2 3/7] vl: create power chip device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , guang li Cc: peter.maydell@linaro.org, stefanha@gmail.com, Andreas =?utf-8?Q?F=C3=A4rber?= , li guang , qemu-devel@nongnu.org Paolo Bonzini writes: > Il 10/04/2013 15:41, guang li ha scritto: >> Yes, you're right. >> The motivation is I want to implement a device >> called EC which is a notion from laptop for QEMU, >> EC has some main functions, like keyboard, mouse, >> low-speed device control(I2C), special ACPI space, >> i8042 and ps2 mouse has been done, power control >> was left, so I tried to add this. > > Do you have a datasheet? Have you looked at hw/acpi/? http://www.coreboot.org/Embedded_controller Has more than you probably ever wanted to know about ECs. I don't see much reason to model an EC in QEMU. It's only visible to firmware (at least on the PC) so there's little benefit to modeling. Regards, Anthony Liguori > > Paolo