qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin O'Connor <kevin@koconnor.net>
To: Stefan Berger <stefanb@linux.vnet.ibm.com>
Cc: seabios@seabios.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH V4 2/8] Provide ACPI SSDT table for TPM device + S3 resume support
Date: Wed, 18 May 2011 19:44:02 -0400	[thread overview]
Message-ID: <20110518234402.GA26641@morn.localdomain> (raw)
In-Reply-To: <4DD422C5.6090107@linux.vnet.ibm.com>

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

  reply	other threads:[~2011-05-18 23:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-12 13:32 [Qemu-devel] [PATCH V4 0/8] Add TPM support to SeaBIOS Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 1/8] Add an implementation for a TPM TIS driver Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 2/8] Provide ACPI SSDT table for TPM device + S3 resume support Stefan Berger
2011-05-18 19:49   ` Stefan Berger
2011-05-18 23:44     ` Kevin O'Connor [this message]
2011-05-19  1:18       ` Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 3/8] Add public get_rsdp function Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 4/8] Implementation of the TCG BIOS extensions Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 5/8] Support for BIOS interrupt handler Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 6/8] Add measurement code to the BIOS Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 7/8] Add a menu for TPM control Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 8/8] Optional tests for the TIS interface Stefan Berger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110518234402.GA26641@morn.localdomain \
    --to=kevin@koconnor.net \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    --cc=stefanb@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).