From patchwork Sun Feb 5 09:11:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ben@skyportsystems.com X-Patchwork-Id: 9556017 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6657A602B1 for ; Sun, 5 Feb 2017 09:17:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F4E526E82 for ; Sun, 5 Feb 2017 09:17:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4134526E39; Sun, 5 Feb 2017 09:17:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CEF5326E39 for ; Sun, 5 Feb 2017 09:17:46 +0000 (UTC) Received: from localhost ([::1]:42356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caIx7-0006Dg-Ds for patchwork-qemu-devel@patchwork.kernel.org; Sun, 05 Feb 2017 04:17:45 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caIsC-0002Xl-GS for qemu-devel@nongnu.org; Sun, 05 Feb 2017 04:12:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caIsB-0001ro-M8 for qemu-devel@nongnu.org; Sun, 05 Feb 2017 04:12:40 -0500 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:34228) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1caIsB-0001rN-Gf for qemu-devel@nongnu.org; Sun, 05 Feb 2017 04:12:39 -0500 Received: by mail-pf0-x235.google.com with SMTP id e4so16279791pfg.1 for ; Sun, 05 Feb 2017 01:12:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skyportsystems.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ab1Aa6q2F9IHHoYFtt22CK8eMd0tVJuwdIj8VDtWW+Q=; b=SeGEcRVbsQe+y4SWqlkMSlhDIfnzao1bbVtWO7LNEyX8SDfbrIohoAVYifE/HLmOFU VfvhXfEFXb4lMheBBrEG3HfCW1tkcVOv69MMLqJTZlk07OIepG+9DOsyv9693F9NoUxl o7e8d7QDnlqPn2Rx0ryH1V01X3SxCjbw9foIg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ab1Aa6q2F9IHHoYFtt22CK8eMd0tVJuwdIj8VDtWW+Q=; b=FsBtLoH4V2SSsYCFDtpWZTsWxzIwowwmlRpnu5W3RPe/MWqoZ4QO2VRooW6GOT6zaw vdfsO73V3pIZbZxy/0AXL2tOL6IyxKO4wJJfsgzvhQ3uTHbvWVjZb+mmxiwcCMlwcfX6 K7I3aI78rc6srJHhBlsSO/ZX3hmErZM7gYSB5A6EAkIjwQhW7b7ytR+GTf9eTPdeHWJ5 EaDyFGr9/zyhgEDJLSzcvZHptV3YAl1HBhMa0d/2PiM9e00+X8WheQna3Go4Ms5QBQ/s 8Juagn9fJWbgwo0O4kkeRxhl6jKsQ0p3l79qeM6un8ykJH9u7oeN1WmTIj+GWz7FCE95 4XRg== X-Gm-Message-State: AIkVDXLkN7ycB10XGo5xk8Y1oiGEfp7MaxSMK2Z0ezCTWgPUj3COlrnkSMg81Qrjb9RZfduk X-Received: by 10.99.7.151 with SMTP id 145mr6798737pgh.121.1486285958735; Sun, 05 Feb 2017 01:12:38 -0800 (PST) Received: from Arrow.corp.skyportsystems.com (76-236-31-201.lightspeed.sntcca.sbcglobal.net. [76.236.31.201]) by smtp.gmail.com with ESMTPSA id s24sm2347127pgo.25.2017.02.05.01.12.38 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 05 Feb 2017 01:12:38 -0800 (PST) From: ben@skyportsystems.com To: qemu-devel@nongnu.org Date: Sun, 5 Feb 2017 01:11:59 -0800 Message-Id: <91b9bb30a86d2b303bab813f7f5ad361810c3149.1486285434.git.ben@skyportsystems.com> X-Mailer: git-send-email 2.10.1 (Apple Git-78) In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::235 Subject: [Qemu-devel] [PATCH v5 04/10] ACPI: Add vmgenid storage entries to the build tables X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: imammedo@redhat.com, lersek@redhat.com, Ben Warren , mst@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Ben Warren This allows them to be centrally initialized and destroyed Signed-off-by: Ben Warren Reviewed-by: Laszlo Ersek --- hw/acpi/aml-build.c | 2 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 3 insertions(+) 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;