All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: ben@skyportsystems.com, qemu-devel@nongnu.org
Cc: imammedo@redhat.com, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH v5 04/10] ACPI: Add vmgenid storage entries to the build tables
Date: Tue, 7 Feb 2017 23:06:50 +0100	[thread overview]
Message-ID: <458f1608-0fe2-60cf-2407-4d45c6aa8639@redhat.com> (raw)
In-Reply-To: <91b9bb30a86d2b303bab813f7f5ad361810c3149.1486285434.git.ben@skyportsystems.com>

On 02/05/17 10:11, ben@skyportsystems.com wrote:
> From: Ben Warren <ben@skyportsystems.com>
> 
> This allows them to be centrally initialized and destroyed
> 
> Signed-off-by: Ben Warren <ben@skyportsystems.com>
> ---
>  hw/acpi/aml-build.c         | 2 ++
>  include/hw/acpi/aml-build.h | 1 +
>  2 files changed, 3 insertions(+)

Please replace "storage entries" in the subject line with "blob
storage", and add the following to the commit message:

----
The "AcpiBuildTables.vmgenid" array will be used to construct the
"etc/vmgenid" fw_cfg blob.

Its contents will be linked into fw_cfg after being built on the
pc_machine_done() -> acpi_setup() -> acpi_build() call path, and dropped
without use on the subsequent, guest triggered, acpi_build_update() ->
acpi_build() call path.
----

... This commit message update actually exposes an important flaw in the
implementation (one that entirely escaped me in the previous round!!!),
but as I've now read forward a little bit, into patch 5, I see that
Michael caught it, which is awesome!

So, with the new fw-cfg callback (on which I'll comment under the next
patch), and with the above commit message / subject updates, please add:

Reviewed-by: Laszlo Ersek <lersek@redhat.com>

Thanks!
Laszlo

> 
> diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
> index 03b6c6c..0f39eaf 100644
> --- a/hw/acpi/aml-build.c
> +++ b/hw/acpi/aml-build.c
> @@ -1594,6 +1594,7 @@ void acpi_build_tables_init(AcpiBuildTables *tables)
>      tables->rsdp = g_array_new(false, true /* clear */, 1);
>      tables->table_data = g_array_new(false, true /* clear */, 1);
>      tables->tcpalog = g_array_new(false, true /* clear */, 1);
> +    tables->vmgenid = g_array_new(false, true /* clear */, 1);
>      tables->linker = bios_linker_loader_init();
>  }
>  
> @@ -1603,6 +1604,7 @@ void acpi_build_tables_cleanup(AcpiBuildTables *tables, bool mfre)
>      g_array_free(tables->rsdp, true);
>      g_array_free(tables->table_data, true);
>      g_array_free(tables->tcpalog, mfre);
> +    g_array_free(tables->vmgenid, mfre);
>  }
>  
>  /* Build rsdt table */
> diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
> index dbf63cf..6f4e239 100644
> --- a/include/hw/acpi/aml-build.h
> +++ b/include/hw/acpi/aml-build.h
> @@ -210,6 +210,7 @@ struct AcpiBuildTables {
>      GArray *table_data;
>      GArray *rsdp;
>      GArray *tcpalog;
> +    GArray *vmgenid;
>      BIOSLinker *linker;
>  } AcpiBuildTables;
>  
> 

  reply	other threads:[~2017-02-07 22:06 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-05  9:11 [Qemu-devel] [PATCH v5 00/10] Add support for VM Generation ID ben
2017-02-05  9:11 ` [Qemu-devel] [PATCH v5 01/10] ACPI: Add a function for building named qword entries ben
2017-02-07 13:51   ` Igor Mammedov
2017-02-07 20:09     ` Laszlo Ersek
2017-02-08 10:43       ` Igor Mammedov
2017-02-08 10:53         ` Laszlo Ersek
2017-02-08 20:24           ` Ben Warren
2017-02-05  9:11 ` [Qemu-devel] [PATCH v5 02/10] linker-loader: Add new 'write pointer' command ben
2017-02-06 14:56   ` Michael S. Tsirkin
2017-02-06 17:16     ` Ben Warren
2017-02-06 17:31       ` Michael S. Tsirkin
2017-02-07 12:11         ` Igor Mammedov
2017-02-07 20:20           ` Laszlo Ersek
2017-02-05  9:11 ` [Qemu-devel] [PATCH v5 03/10] docs: VM Generation ID device description ben
2017-02-06 20:18   ` Eric Blake
2017-02-07 20:54   ` Laszlo Ersek
2017-02-10  0:55   ` Laszlo Ersek
2017-02-05  9:11 ` [Qemu-devel] [PATCH v5 04/10] ACPI: Add vmgenid storage entries to the build tables ben
2017-02-07 22:06   ` Laszlo Ersek [this message]
2017-02-05  9:12 ` [Qemu-devel] [PATCH v5 05/10] ACPI: Add Virtual Machine Generation ID support ben
2017-02-06 16:15   ` Michael S. Tsirkin
2017-02-06 17:29     ` Ben Warren
2017-02-06 17:41       ` Michael S. Tsirkin
2017-02-06 17:59         ` Ben Warren
2017-02-06 18:17           ` Michael S. Tsirkin
2017-02-06 18:48             ` Ben Warren
2017-02-06 19:04               ` Michael S. Tsirkin
2017-02-06 19:44                 ` Ben Warren
2017-02-07 14:00         ` Igor Mammedov
2017-02-07 15:35           ` Michael S. Tsirkin
2017-02-07 16:04             ` Igor Mammedov
2017-02-07 16:22               ` Michael S. Tsirkin
2017-02-07 13:48   ` Igor Mammedov
2017-02-07 15:36     ` Michael S. Tsirkin
2017-02-08 20:19     ` Ben Warren
2017-02-09  9:59       ` Igor Mammedov
2017-02-08  0:48   ` Laszlo Ersek
2017-02-08 11:04     ` Igor Mammedov
2017-02-08 11:17       ` Laszlo Ersek
2017-02-08 12:00         ` Igor Mammedov
2017-02-08 22:34     ` Ben Warren
2017-02-08 23:43       ` Laszlo Ersek
2017-02-09 17:23     ` Igor Mammedov
2017-02-09 18:21       ` Michael S. Tsirkin
2017-02-09 19:27       ` Laszlo Ersek
2017-02-09 20:02         ` Ben Warren
2017-02-09 20:24           ` Laszlo Ersek
2017-02-09 20:39             ` Ben Warren
2017-02-10  8:54               ` Igor Mammedov
2017-02-09  0:37   ` Laszlo Ersek
2017-02-05  9:12 ` [Qemu-devel] [PATCH v5 06/10] qmp/hmp: add query-vm-generation-id and 'info vm-generation-id' commands ben
2017-02-05  9:12 ` [Qemu-devel] [PATCH v5 07/10] qmp/hmp: add set-vm-generation-id commands ben
2017-02-07 13:50   ` Igor Mammedov
2017-02-08 22:01   ` Laszlo Ersek
2017-02-05  9:12 ` [Qemu-devel] [PATCH v5 08/10] PC: Support dynamic sysbus on pc_i440fx ben
2017-02-06 16:31   ` Michael S. Tsirkin
2017-02-12 19:55     ` Marcel Apfelbaum
2017-02-13  0:32       ` Ben Warren
2017-02-07 14:05   ` Igor Mammedov
2017-02-05  9:12 ` [Qemu-devel] [PATCH v5 09/10] tests: Move reusable ACPI macros into a new header file ben
2017-02-05  9:12 ` [Qemu-devel] [PATCH v5 10/10] tests: Add unit tests for the VM Generation ID feature ben
2017-02-10 10:12 ` [Qemu-devel] [PATCH v5 00/10] Add support for VM Generation ID Laszlo Ersek
2017-02-10 10:28   ` Igor Mammedov
2017-02-10 15:31   ` Michael S. Tsirkin
2017-02-10 16:16     ` Igor Mammedov
2017-02-10 18:18       ` Andrew Jones
2017-02-10 18:27         ` Andreas Färber
2017-02-13 11:00           ` Igor Mammedov
2017-02-13 13:00             ` Michael S. Tsirkin
2017-02-13 13:40               ` Igor Mammedov

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=458f1608-0fe2-60cf-2407-4d45c6aa8639@redhat.com \
    --to=lersek@redhat.com \
    --cc=ben@skyportsystems.com \
    --cc=imammedo@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.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.