qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Stefan Berger <stefanb@us.ibm.com>
Cc: lersek@redhat.com, qemu-devel@nongnu.org,
	Stefan Berger <stefanb@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH v2] Add ACPI tables for TPM
Date: Wed, 30 Jul 2014 17:25:25 +0200	[thread overview]
Message-ID: <20140730152525.GF26313@redhat.com> (raw)
In-Reply-To: <OF58128BC6.E301B4B3-ON85257D25.005360FE-85257D25.00539757@us.ibm.com>

On Wed, Jul 30, 2014 at 11:13:07AM -0400, Stefan Berger wrote:
> "Michael S. Tsirkin" <mst@redhat.com> wrote on 07/30/2014 11:07:28 AM:
> 
> 
> > > >If you need bios to allocate this memory, then we will
> > > >need a new allocation type for this, add it to linker
> > > >in bios and qemu.
> > >
> > > Why does the BIOS 'need' to allocate it? Why can it not just use the memory
> > > that QEMU allocates? Obviously I am using the 'pointer relocation' feature
> > > of the BIOS to bend the pointer in the TCPA table to this log area.
> >
> > You tell me - your patches make BIOS allocate it.
> 
> No, the BIOS does not allocate it, it merely relocates the pointer.

Yes it does :)
You pushed the log as part of the table_data which bios
allocates memory for, and reads from QEMU.

> One example here:
> 
>     fadt->firmware_ctrl = cpu_to_le32(facs);
>     /* FACS address to be filled by Guest linker */
>     bios_linker_loader_add_pointer(linker, ACPI_BUILD_TABLE_FILE,  
>                                    ACPI_BUILD_TABLE_FILE,
>                                    table_data, &fadt->firmware_ctrl,
>                                    sizeof fadt->firmware_ctrl);
> 
> similar example here:
> 
>     log_area_start_address = table_data->len + sizeof(*tcpa);
>  
>     [...]
>     tcpa->log_area_start_address = cpu_to_le64(log_area_start_address);
> 
>     /* LASA address to be filled by Guest linker */
>     bios_linker_loader_add_pointer(linker, ACPI_BUILD_TABLE_FILE,
>                                    ACPI_BUILD_TABLE_FILE,
>                                    table_data, &tcpa->log_area_start_address,
>                                    sizeof(tcpa->log_area_start_address));
> 
> 
> 
>    Stefan


It relocates it to within the table that it allocated.

  reply	other threads:[~2014-07-30 15:25 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-29 10:52 [Qemu-devel] [PATCH v2] Add ACPI tables for TPM Stefan Berger
2014-07-30 11:17 ` Michael S. Tsirkin
2014-07-30 13:34   ` Stefan Berger
2014-07-30 13:20 ` Michael S. Tsirkin
2014-07-30 14:36   ` Laszlo Ersek
2014-07-30 14:46     ` Michael S. Tsirkin
2014-07-30 15:15       ` Laszlo Ersek
2014-07-30 15:37         ` Michael S. Tsirkin
2014-07-30 16:02           ` Laszlo Ersek
2014-07-30 16:07             ` Michael S. Tsirkin
2014-07-30 16:22               ` Laszlo Ersek
2014-07-30 15:03     ` Igor Mammedov
2014-07-30 15:29       ` Laszlo Ersek
2014-07-30 15:10     ` Stefan Berger
2014-07-30 15:20       ` Michael S. Tsirkin
2014-07-30 15:29         ` Stefan Berger
2014-07-30 15:41           ` Laszlo Ersek
2014-07-30 15:44             ` Stefan Berger
2014-07-30 15:58               ` Laszlo Ersek
2014-07-30 16:03                 ` Stefan Berger
2014-07-30 16:10                   ` Michael S. Tsirkin
2014-07-30 16:18                     ` Laszlo Ersek
2014-07-30 16:35                       ` Stefan Berger
2014-07-30 17:18                         ` Laszlo Ersek
2014-07-30 15:50           ` Michael S. Tsirkin
2014-07-30 15:59             ` Stefan Berger
2014-07-30 16:05               ` Michael S. Tsirkin
2014-07-30 16:14                 ` Laszlo Ersek
2014-07-30 16:19                 ` Stefan Berger
2014-07-30 15:37       ` Laszlo Ersek
2014-07-30 15:52         ` Michael S. Tsirkin
2014-07-30 16:07           ` Laszlo Ersek
2014-07-30 16:11             ` Stefan Berger
2014-07-30 16:11             ` Michael S. Tsirkin
2014-07-30 16:24               ` Laszlo Ersek
2014-07-30 14:54   ` Stefan Berger
2014-07-30 15:07     ` Michael S. Tsirkin
2014-07-30 15:13       ` Stefan Berger
2014-07-30 15:25         ` Michael S. Tsirkin [this message]
2014-07-30 15:36           ` 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=20140730152525.GF26313@redhat.com \
    --to=mst@redhat.com \
    --cc=lersek@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanb@linux.vnet.ibm.com \
    --cc=stefanb@us.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).