From nobody Sat May 4 18:39:06 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1617351766; cv=none; d=zohomail.com; s=zohoarc; b=JuLH/qXF3Kwg/X0supa1NDT9yGkQG+hzeief+RR3uBrDmO6Jdn1P77273OnFPLxcp2toGWfpV772+ylRm1o4O5tCZecfxXHbv/R+bduy+Z3r7Y5pm4M7ON0rpX7RY7fs4pJcheEFdub+/nqOhO2eQQDO91qpH28RST53UeP6EXI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617351766; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=/kkhhXrv9zALTxYnf0aoOrh65wTIbb7FoLwL6ANAmNM=; b=F1Gkm98pz0qvsmcxHhHvAGoKZASZuOPSDYFyxM2LtagTHozVi1J/MEMPFzDsXH3v7Kx4fZ1QLJ8wcK7Hv4RYJSzat4HlV2NUC3u9gKanZfjbli7aa/BhMEsd4lp2SOD6f4RJTgNqV5705sFrH3debCrh57mrBSmH1/qWPu5h1fE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1617351766676487.54166048914794; Fri, 2 Apr 2021 01:22:46 -0700 (PDT) Received: from localhost ([::1]:57542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSF4n-000125-85 for importer@patchew.org; Fri, 02 Apr 2021 04:22:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSF3f-0000SZ-89 for qemu-devel@nongnu.org; Fri, 02 Apr 2021 04:21:36 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:37781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSF3d-0007N5-JI for qemu-devel@nongnu.org; Fri, 02 Apr 2021 04:21:34 -0400 Received: by mail-wm1-x336.google.com with SMTP id f22-20020a7bc8d60000b029010c024a1407so3989698wml.2 for ; Fri, 02 Apr 2021 01:21:31 -0700 (PDT) Received: from avogadro.lan ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id o2sm11330841wme.19.2021.04.02.01.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 01:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/kkhhXrv9zALTxYnf0aoOrh65wTIbb7FoLwL6ANAmNM=; b=Pv7Koy83AqyuWHSmJAXt1WeFBVqACWfbmEv9psz1fyfM7ITDFnwEqWGRSkJUN2rkmx s/yJl/+uU4CBu+oqCjI+olPGEfiQqEh/bQzd+JzkaHJ0DCRhe3Fu99qDIeCesOns/MAq NDncKPHcgCdgCwgALlYv55UycJx71MhXvlqmIVldjIYKVT4MGNzlQH5f7pzFFWEWZ5M2 VdP9zLoRaBE9HgbQxq4DkBbBRKTjPGgh6ZiBopH5QpULG/e4kF8ijNZG0lHZ5KWha4NI 5Ql2Ol9f9iRQsFhLTImdwdaa63v52MDsSl7PVxLn7ZPQzRLv5d9HzpO3or0WxUAE26dI /Spg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=/kkhhXrv9zALTxYnf0aoOrh65wTIbb7FoLwL6ANAmNM=; b=TJfOAocmeq1wAJkU6KjF/luhNIayqAFd9vNFMu/svAFtRJ2CT23psWd5zpAudp5pKe NLFekRz2i1r6d0BCsL7QtViAp3tM6ChQCC3ayzsMCj+2taSKpn9266oFZxYgcjkMFbiL N0rP6zQXj/m9Pxo1eoV1G3XBWf8KgJNbmpzVXsB5zE27j1DN010gS1aubb/+o6SUW173 9J96hF7xfod5tlTYIebVkN56WEMRSjOTWbZOj22cDJo6rfrXiN8H1wpuWPbfOhBD/RQs CBm/smglzjzQABuI0jA/NGDzzfsaOpq7sS4Tj2lLUl+VaGEteXsoTzK+V/xPyWBiIiKm kOTQ== X-Gm-Message-State: AOAM530zH1N0JCE64VQyhpDIB896TGVkTgRnH2wlIL+1BLhembsPLvtN nXs4cDzVgJHwmL+veWTUEq+ZTZv1hJE= X-Google-Smtp-Source: ABdhPJyPlHCdYj0da4wQnjjVwrRh7SZphOCQqhcv4T7q9eXhq7dQGTPTyBHSrrtLhKC7krSP8fyjFw== X-Received: by 2002:a7b:ce06:: with SMTP id m6mr11298045wmc.38.1617351690075; Fri, 02 Apr 2021 01:21:30 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH for 6.0] x86: rename oem-id and oem-table-id properties Date: Fri, 2 Apr 2021 10:21:28 +0200 Message-Id: <20210402082128.13854-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=paolo.bonzini@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mst@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" After introducing non-scalar machine properties, it would be preferrable to have a single acpitable property which includes both generic information (such as the OEM ids) and custom tables currently passed via -acpitable. Do not saddle ourselves with legacy oem-id and oem-table-id properties, instead mark them as experimental. Signed-off-by: Paolo Bonzini --- hw/arm/virt.c | 8 ++++---- include/hw/i386/x86.h | 4 ++-- tests/qtest/bios-tables-test.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index aa2bbd14e0..bc5f948367 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2670,19 +2670,19 @@ static void virt_machine_class_init(ObjectClass *oc= , void *data) "Set on/off to enable/disable " "ITS instantiation"); =20 - object_class_property_add_str(oc, "oem-id", + object_class_property_add_str(oc, "x-oem-id", virt_get_oem_id, virt_set_oem_id); - object_class_property_set_description(oc, "oem-id", + object_class_property_set_description(oc, "x-oem-id", "Override the default value of f= ield OEMID " "in ACPI table header." "The string may be up to 6 bytes= in size"); =20 =20 - object_class_property_add_str(oc, "oem-table-id", + object_class_property_add_str(oc, "x-oem-table-id", virt_get_oem_table_id, virt_set_oem_table_id); - object_class_property_set_description(oc, "oem-table-id", + object_class_property_set_description(oc, "x-oem-table-id", "Override the default value of f= ield OEM Table ID " "in ACPI table header." "The string may be up to 8 bytes= in size"); diff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h index 26c9cc45a4..c09b648dff 100644 --- a/include/hw/i386/x86.h +++ b/include/hw/i386/x86.h @@ -78,8 +78,8 @@ struct X86MachineState { =20 #define X86_MACHINE_SMM "smm" #define X86_MACHINE_ACPI "acpi" -#define X86_MACHINE_OEM_ID "oem-id" -#define X86_MACHINE_OEM_TABLE_ID "oem-table-id" +#define X86_MACHINE_OEM_ID "x-oem-id" +#define X86_MACHINE_OEM_TABLE_ID "x-oem-table-id" =20 #define TYPE_X86_MACHINE MACHINE_TYPE_NAME("x86") OBJECT_DECLARE_TYPE(X86MachineState, X86MachineClass, X86_MACHINE) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index e020c83d2a..156d4174aa 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -73,7 +73,7 @@ =20 #define OEM_ID "TEST" #define OEM_TABLE_ID "OEM" -#define OEM_TEST_ARGS "-machine oem-id=3D"OEM_ID",oem-table-id=3D"OEM= _TABLE_ID +#define OEM_TEST_ARGS "-machine x-oem-id=3D"OEM_ID",x-oem-table-id=3D= "OEM_TABLE_ID =20 typedef struct { bool tcg_only; --=20 2.30.1