From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGPTs-0004Ad-9T for qemu-devel@nongnu.org; Wed, 28 Jan 2015 05:04:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGPTm-00029h-4Y for qemu-devel@nongnu.org; Wed, 28 Jan 2015 05:04:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGPTl-00029b-TT for qemu-devel@nongnu.org; Wed, 28 Jan 2015 05:04:10 -0500 From: Igor Mammedov Date: Wed, 28 Jan 2015 10:03:37 +0000 Message-Id: <1422439417-5031-14-git-send-email-imammedo@redhat.com> In-Reply-To: <1422439417-5031-1-git-send-email-imammedo@redhat.com> References: <20150128072757.GA12987@redhat.com> <1422439417-5031-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 13/13] i386: acpi: mark SSDT as RSDT entry so API would add entry to RSDT automatically List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, drjones@redhat.com, zhaoshenglong@huawei.com, claudio.fontana@huawei.com, marcel.a@redhat.com Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index d7d2590..da259aa 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -649,6 +649,7 @@ build_ssdt(AcpiAml *table_aml, GArray *linker, /* Init SSDT Definition Block */ ssdt = acpi_def_block("SSDT", 1, ACPI_BUILD_APPNAME6, ACPI_BUILD_APPNAME4, 1); + ssdt->has_rsdt_entry = true; scope = acpi_scope("\\_SB.PCI0"); /* build PCI0._CRS */ @@ -1386,7 +1387,6 @@ void acpi_build(PcGuestInfo *guest_info, AcpiBuildTables *tables) build_fadt(tables->table_data->buf, tables->linker, &pm, facs, dsdt); ssdt = tables->table_data->buf->len; - acpi_add_table(table_offsets, tables->table_data->buf); build_ssdt(tables->table_data, tables->linker, &cpu, &pm, &misc, &pci, guest_info); aml_len += tables->table_data->buf->len - ssdt; -- 1.8.3.1