All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: Kevin O'Connor <kevin@koconnor.net>
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 15:49:25 -0400	[thread overview]
Message-ID: <4DD422C5.6090107@linux.vnet.ibm.com> (raw)
In-Reply-To: <20110412133250.471022795@linux.vnet.ibm.com>

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?

> +        *tpm_addr = malloc_high(sizeof(AmlCode_TPM));
> +
> +        tcpa = malloc_high(sizeof(*tcpa) + laml);
> +        if (!tcpa || !*tpm_addr) {
> +            warn_noalloc();
> +            return 1;
> +        }
Regards,
    Stefan

  reply	other threads:[~2011-05-18 19:49 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 [this message]
2011-05-18 23:44     ` Kevin O'Connor
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=4DD422C5.6090107@linux.vnet.ibm.com \
    --to=stefanb@linux.vnet.ibm.com \
    --cc=kevin@koconnor.net \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.