From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2jyX-0008ES-JD for qemu-devel@nongnu.org; Fri, 26 Jul 2013 11:30:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2jyW-0003GB-HR for qemu-devel@nongnu.org; Fri, 26 Jul 2013 11:30:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2jyW-0003FM-Aq for qemu-devel@nongnu.org; Fri, 26 Jul 2013 11:30:36 -0400 Message-ID: <51F29615.7030900@redhat.com> Date: Fri, 26 Jul 2013 17:30:29 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1374681580-17439-1-git-send-email-mst@redhat.com> <1374681580-17439-15-git-send-email-mst@redhat.com> <51F122D1.4010600@redhat.com> <20130725132301.GA2575@redhat.com> <51F13D0C.20602@redhat.com> <20130725151435.GE3758@redhat.com> <51F23C1A.7030103@redhat.com> In-Reply-To: <51F23C1A.7030103@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 14/14] i386: ACPI table generation code from seabios List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Anthony Liguori , qemu-devel@nongnu.org Hi, >> That's something I think that it's best for firmware to avoid. >> Much better to load tables in memory and use standard ACPI >> methods to find specific tables. > > Problem is this happens relatively late in the firmware boot process. Completely different idea to tackle the issue: use COMMAND_ADD_POINTER not only for table pointers, but also register offsets. So the firmware doesn't need to parse fadt to figure how it should program pm_base, but instead can fixup the fadt according to the pm_base it has used. That is more in line with how firmware works (pm_base and simliar things tends to be #defines and are not runtime-configurable). And I think it's also more robust when extending/changing tables for newer acpi spec revisions. cheers, Gerd