From nobody Sun Feb 8 20:12:53 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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 ARC-Seal: i=1; a=rsa-sha256; t=1676299337; cv=none; d=zohomail.com; s=zohoarc; b=gLvRhqu/1rHgyo30Nddlwa3n6v6G9zunTQib8/Fz88hm19bmqfVcaeg9IsoxcsSFMtORR8HD4ZKDOp6SZQ+s4Ppx5D0vhSdR7KGm9PIWDkzZI2beWVMMoF5AKOfVWvGsmIkzjveMl3jp6wZFusPi4MbR9SZOimFjZ0/D//uPsUU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676299337; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=l49v2a+f6jJfyAmwBZFZU1/DlBxv+sfOE9Smp77Jgfc=; b=Ada2LIgyZgwTqlV/7hFwStpfSO0SKhg3pO+NGPO5A67Jgkpqup95oQnPLfMqP4bPYDH2jIa1VjvB3sqod7cxIXv1aOJIKhFI86XEbBm2+qhUwCvQv2IfeD2Za5iMZbJoOf9XlPSjoPPdUS4dsSCg6vUga34gyr3sZbq2parVBFk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1676299337197395.57420389690935; Mon, 13 Feb 2023 06:42:17 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRa0i-00065c-6s; Mon, 13 Feb 2023 09:40:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRa0h-00064h-9p for qemu-devel@nongnu.org; Mon, 13 Feb 2023 09:40:51 -0500 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRa0f-0005RX-Ms for qemu-devel@nongnu.org; Mon, 13 Feb 2023 09:40:50 -0500 Received: by mail-pl1-x636.google.com with SMTP id k13so13759298plg.0 for ; Mon, 13 Feb 2023 06:40:49 -0800 (PST) Received: from kerodi.Dlink ([49.206.14.226]) by smtp.gmail.com with ESMTPSA id y23-20020a63de57000000b004fb8732a2f9sm3777757pgi.88.2023.02.13.06.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 06:40:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l49v2a+f6jJfyAmwBZFZU1/DlBxv+sfOE9Smp77Jgfc=; b=deLR9/BMaJM4voq1pTiWmCXuScmxuZlK57fjUvvabO9kplE5l+r7hmmiYFxIrE8dFA e2p0EvJA1+1Y0cNq0YH9EPOwEdKKDttc5+PfJI1y3jUbkqZQSYdkqYD2yNDUM+akCa/3 5nZQnfByYrbkmEQI/iLFMNvED61wnM4jhYVAAvB5Lxo6I7cKKuwgN2KJNrXW8XtckYc1 6Q+fPzkYScuFUlg3BpbK4CG1VzkRwYtoX9Q6exygyhoI71pioc7P2CKco/QtjLF4lozA sf/Alo2M+90dFaiJKiGf9GsFxwjGdSsDEsrBg9/xRLdGvLDJxtlrZSIhkPdrWKV01fzZ RNOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l49v2a+f6jJfyAmwBZFZU1/DlBxv+sfOE9Smp77Jgfc=; b=bqiLpzWVS12dLwfda7kFFU/Aul+U7fYGQU0y9gwHDK3e0IydDai7G4kUtBETKo3F3d esqqmf/7Pdsu4iLR4+mgJvPRpBmO2BvPpRCcQ2tcnWuBDP8oReRtKzMzKBaKumKyCovI HuhnExeymyUs4p8ZO/8dPEn9WW8lDV/gdkh5sogSN7Zmts40d9JE947xE0OS+Zhw4KEb R2EH64ZVQdrSv5QGZm8VCr05ps2K0olKCLWAbdSabJiLevvkW6nXamL1AWTcbM+xyXRL /4UrimjOF7QIXebPzkhSc4Z9JsPqkYVeu4iXUWogXlPeWPRhLem1jGVSC580XDDjWEkk jtcQ== X-Gm-Message-State: AO0yUKXfAQcf4gsjJB7wPfF5HqAUsfxcHSnEkuYEvBfEEthEM6BDPlBG fLzLvjEDH3ITRMEs1pMYLYYV0Q== X-Google-Smtp-Source: AK7set8nbmRGk+3M8HTrT8fpl3qgEL4THYfYa4N6gDf4hJ5I1tTm2tSrRUoDcb62DSW6Vdb9wdYtIQ== X-Received: by 2002:a17:90b:3b49:b0:230:f96d:4bad with SMTP id ot9-20020a17090b3b4900b00230f96d4badmr9026789pjb.2.1676299248497; Mon, 13 Feb 2023 06:40:48 -0800 (PST) From: Sunil V L To: Palmer Dabbelt , Alistair Francis , Bin Meng Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Andrew Jones , Anup Patel , Atish Kumar Patra , Daniel Henrique Barboza , Sunil V L , Bin Meng Subject: [PATCH V2 01/10] hw/riscv/virt: Add OEM_ID and OEM_TABLE_ID fields Date: Mon, 13 Feb 2023 20:10:29 +0530 Message-Id: <20230213144038.2547584-2-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230213144038.2547584-1-sunilvl@ventanamicro.com> References: <20230213144038.2547584-1-sunilvl@ventanamicro.com> 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=2607:f8b0:4864:20::636; envelope-from=sunilvl@ventanamicro.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ventanamicro.com) X-ZM-MESSAGEID: 1676299338871100003 Content-Type: text/plain; charset="utf-8" ACPI needs OEM_ID and OEM_TABLE_ID for the machine. Add these fields in the RISCVVirtState structure and initialize with default values. Signed-off-by: Sunil V L Reviewed-by: Bin Meng Acked-by: Alistair Francis Reviewed-by: Andrew Jones --- hw/riscv/virt.c | 4 ++++ include/hw/riscv/virt.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 86c4adc0c9..fb68cf81e9 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -49,6 +49,7 @@ #include "hw/pci/pci.h" #include "hw/pci-host/gpex.h" #include "hw/display/ramfb.h" +#include "hw/acpi/aml-build.h" =20 /* * The virt machine physical address space used by some of the devices @@ -1504,6 +1505,9 @@ static void virt_machine_init(MachineState *machine) } virt_flash_map(s, system_memory); =20 + s->oem_id =3D g_strndup(ACPI_BUILD_APPNAME6, 6); + s->oem_table_id =3D g_strndup(ACPI_BUILD_APPNAME8, 8); + /* create device tree */ create_fdt(s, memmap); =20 diff --git a/include/hw/riscv/virt.h b/include/hw/riscv/virt.h index b3d26135c0..6c7885bf89 100644 --- a/include/hw/riscv/virt.h +++ b/include/hw/riscv/virt.h @@ -56,6 +56,8 @@ struct RISCVVirtState { bool have_aclint; RISCVVirtAIAType aia_type; int aia_guests; + char *oem_id; + char *oem_table_id; }; =20 enum { --=20 2.34.1