From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUixW-0004Lk-A7 for qemu-devel@nongnu.org; Wed, 16 May 2012 14:28:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUixU-0007Xi-IW for qemu-devel@nongnu.org; Wed, 16 May 2012 14:28:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUixU-0007XC-A1 for qemu-devel@nongnu.org; Wed, 16 May 2012 14:28:24 -0400 Date: Wed, 16 May 2012 19:40:28 +0300 From: Gleb Natapov Message-ID: <20120516164028.GC28798@redhat.com> References: <1336998923-30144-1-git-send-email-gleb@redhat.com> <1336998923-30144-2-git-send-email-gleb@redhat.com> <20120515014319.GA21845@morn.localdomain> <20120515080605.GD32036@redhat.com> <20120515231810.GA674@morn.localdomain> <20120516134657.GU32036@redhat.com> <4FB3CCC7.4070701@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FB3CCC7.4070701@redhat.com> Subject: Re: [Qemu-devel] [PATCH 2/2] Get system state configuration from QEMU and patcth DSDT with it. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Kevin O'Connor , seabios@seabios.org, qemu-devel@nongnu.org On Wed, May 16, 2012 at 05:50:31PM +0200, Paolo Bonzini wrote: > Il 16/05/2012 15:46, Gleb Natapov ha scritto: > > I saw that, but I don't get why doing it this way instead of defining > > the object in AML and patching it? I can define Name(S4VL, 0x2) and path > > 0x2 to whatever QEMU wants me to use, or I can patch Package directly > > like I did. > > > > Can we build an SSDT that includes the contents of fw_cfg (e.g. > FW_CFG_SIGNATURE at offset 0, FW_CFG_UUID at offset 4, FW_CFG_NOGRAPHIC > at offset 16... the entry <-> offset mapping and the defaults would be > part of SeaBIOS), and then read that data from normal DSDT methods? Kevin does not want to use offsets any more :) He wants to use files, so this will not work for new entries. > > That would be similar to Gerd's patch, but without letting the OSPM use > the real fw_cfg device. > Latest Gerd's patch does not use fw_cfg device. It creates AML code manually, I am saying we can do the same by patching, but the end result will be the same. -- Gleb.