qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric DeVolder <eric.devolder@oracle.com>
To: qemu-devel@nongnu.org
Cc: ehabkost@redhat.com, mst@redhat.com, konrad.wilk@oracle.com,
	pbonzini@redhat.com, imammedo@redhat.com,
	boris.ostrovsky@oracle.com, rth@twiddle.net
Subject: [PATCH v4 4/6] ACPI ERST: create ACPI ERST table for pc/x86 machines.
Date: Fri, 11 Jun 2021 14:31:21 -0400	[thread overview]
Message-ID: <1623436283-20213-5-git-send-email-eric.devolder@oracle.com> (raw)
In-Reply-To: <1623436283-20213-1-git-send-email-eric.devolder@oracle.com>

This change exposes ACPI ERST support for x86 guests.

Signed-off-by: Eric DeVolder <eric.devolder@oracle.com>
---
 hw/i386/acpi-build.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index de98750..d8cae69 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -43,6 +43,7 @@
 #include "sysemu/tpm.h"
 #include "hw/acpi/tpm.h"
 #include "hw/acpi/vmgenid.h"
+#include "hw/acpi/erst.h"
 #include "hw/boards.h"
 #include "sysemu/tpm_backend.h"
 #include "hw/rtc/mc146818rtc_regs.h"
@@ -2388,6 +2389,10 @@ void acpi_build(AcpiBuildTables *tables, MachineState *machine)
                     ACPI_DEVICE_IF(x86ms->acpi_dev), x86ms->oem_id,
                     x86ms->oem_table_id);
 
+    acpi_add_table(table_offsets, tables_blob);
+    build_erst(tables_blob, tables->linker,
+               x86ms->oem_id, x86ms->oem_table_id);
+
     vmgenid_dev = find_vmgenid_dev();
     if (vmgenid_dev) {
         acpi_add_table(table_offsets, tables_blob);
-- 
1.8.3.1



  parent reply	other threads:[~2021-06-11 18:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-11 18:31 [PATCH v4 0/6] acpi: Error Record Serialization Table, ERST, support for QEMU Eric DeVolder
2021-06-11 18:31 ` [PATCH v4 1/6] ACPI ERST: bios-tables-test.c steps 1 and 2 Eric DeVolder
2021-06-22  6:34   ` Igor Mammedov
2021-06-22  6:44     ` Igor Mammedov
2021-06-11 18:31 ` [PATCH v4 2/6] ACPI ERST: header file for ERST Eric DeVolder
2021-06-11 18:31 ` [PATCH v4 3/6] ACPI ERST: support for ACPI ERST feature Eric DeVolder
2021-06-22 15:29   ` Igor Mammedov
2021-06-11 18:31 ` Eric DeVolder [this message]
2021-06-22  6:50   ` [PATCH v4 4/6] ACPI ERST: create ACPI ERST table for pc/x86 machines Igor Mammedov
2021-06-11 18:31 ` [PATCH v4 5/6] ACPI ERST: qtest for ERST Eric DeVolder
2021-06-11 18:31 ` [PATCH v4 6/6] ACPI ERST: step 6 of bios-tables-test.c Eric DeVolder
2021-06-22 15:51 ` [PATCH v4 0/6] acpi: Error Record Serialization Table, ERST, support for QEMU Igor Mammedov
2021-06-24 18:49   ` Eric DeVolder

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=1623436283-20213-5-git-send-email-eric.devolder@oracle.com \
    --to=eric.devolder@oracle.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=konrad.wilk@oracle.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).