Received: from eggs.gnu.org ([140.186.70.92]:35224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMqPO-0006qW-Ns for qemu-devel@nongnu.org; Wed, 18 May 2011 19:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMqPN-0005fY-SK for qemu-devel@nongnu.org; Wed, 18 May 2011 19:44:06 -0400 Received: from mail-vx0-f173.google.com ([209.85.220.173]:34851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMqPN-0005fO-Q5 for qemu-devel@nongnu.org; Wed, 18 May 2011 19:44:05 -0400 Received: by vxb37 with SMTP id 37so1754461vxb.4 for ; Wed, 18 May 2011 16:44:04 -0700 (PDT) Date: Wed, 18 May 2011 19:44:02 -0400 From: Kevin O'Connor Message-ID: <20110518234402.GA26641@morn.localdomain> References: <20110412133234.861465124@linux.vnet.ibm.com> <20110412133250.471022795@linux.vnet.ibm.com> <4DD422C5.6090107@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DD422C5.6090107@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH V4 2/8] Provide ACPI SSDT table for TPM device + S3 resume support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Berger Cc: seabios@seabios.org, qemu-devel@nongnu.org On Wed, May 18, 2011 at 03:49:25PM -0400, Stefan Berger wrote: > On 04/12/2011 09:32 AM, Stefan Berger wrote: > >+ > >+static u32 add_tpm_device(void **tpm_addr, void **tcpa_addr) > >+{ > >+ struct tcpa_descriptor_rev2 *tcpa; > >+ > >+ *tpm_addr = NULL; > >+ *tcpa_addr = NULL; > >+ > >+ if (has_working_tpm()) { > >+ u32 laml = 64 * 1024; > Kevin, > > the above line prepares 64 kb to be allocated for an ACPI table. > It works fine if booting a VM from an image. However, when passing > the kernel, initrd and command line parameters to Qemu directly > (-kernel, -append, ..), the 64kb above seem to be too much -- I see > errors in the Linux kernel's dmesg when Linux tries to access the > ACPI tables. Lowering the above to 48kb (happens to) makes it work. > I am wondering whether something is copying into the ACPI area or > what else may be the reason - do you know? I don't know of any reason why that would fail. You can print out the address and compare it to the e820 map that SeaBIOS outputs and verify it is properly reserved. Does increasing the amount of guest system ram help? BTW, is this just a buffer or could the size be dynamically calculated? -Kevin