From nobody Tue Feb 10 11:36:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1486286353954766.783740300581; Sun, 5 Feb 2017 01:19:13 -0800 (PST) Received: from localhost ([::1]:42361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caIyW-0007MI-IA for importer@patchew.org; Sun, 05 Feb 2017 04:19:12 -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) 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) 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) 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 =3D g_array_new(false, true /* clear */, 1); tables->table_data =3D g_array_new(false, true /* clear */, 1); tables->tcpalog =3D g_array_new(false, true /* clear */, 1); + tables->vmgenid =3D g_array_new(false, true /* clear */, 1); tables->linker =3D bios_linker_loader_init(); } =20 @@ -1603,6 +1604,7 @@ void acpi_build_tables_cleanup(AcpiBuildTables *table= s, 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); } =20 /* 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; =20 --=20 2.7.4