From patchwork Thu Mar 2 09:12:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 13156859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8537DC6FA8E for ; Thu, 2 Mar 2023 09:13:37 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXezg-00048L-QP; Thu, 02 Mar 2023 04:12:56 -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 1pXeze-00045x-Ld for qemu-devel@nongnu.org; Thu, 02 Mar 2023 04:12:54 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXezd-0004RU-20 for qemu-devel@nongnu.org; Thu, 02 Mar 2023 04:12:54 -0500 Received: by mail-pj1-x102c.google.com with SMTP id 6-20020a17090a190600b00237c5b6ecd7so2162684pjg.4 for ; Thu, 02 Mar 2023 01:12:52 -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=IgHDmQnuC0ohesXkjuU3Tp9ntNJhpkJz30khys/nojg=; b=POf5lDVWrgDnI00pdsHqfak12z61bs7Ck44vaFKPRp+rjsmILnioOu8L+Sf42VDfMc CEURMHg4n3oVnxFAXqIrEnS7o2Kw99aDeZDNNEMg88t4SsHiK3kjxVxd+rw6y/Rs1gje WBFEqnzwflj8y4R/qgkv0qQRUzDR5y12KlER2ChAQyK14RVrmerJQzrFP1izglGi3Ovi UtcUsRCcEaYsAymeW/jewfdK2zpaHz1aCeH31E37NySbbB1vzdSFwnpCdnZ3BJKUkBqR VGDkK0U17W6DwK+PmKB+niCdJ8qB+uYzOoDvFv+pSpqaNGRdnkSRt+xN+UsInbxUKHBM kJQw== 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=IgHDmQnuC0ohesXkjuU3Tp9ntNJhpkJz30khys/nojg=; b=4iBYvh3RYDBm3GmOTNjuSo1mh2mR22VSWR5jN0LX2TRVN44R8dM8wRuHaSh6xMNQtQ +I7XqYfvoLelVL3ieSYxSOnw0PlpP7HHYQANa4bds4TrORWTlM8Nr63cosXSlXUDeW3P 44rpRfwo5BE/bgjrIXaD/RJ1Fn0BkI0G7dlzOVxJ01tGYPjzxW/QU8Xx1PXmvrq+WYSh RUmciDRYS7obE4x3JaIv+FuSW7T4Rs8dAMR3YHVnIkeZtAygwXkoGHQrTGN/2JmxF0YX 2uwkqbtB6bQ9JHXBdiCekVpSDhp5QXL9wvcoABRu+MX9I5GReZGTZUaeMFbNqryLWTTf MHRQ== X-Gm-Message-State: AO0yUKW1uzi/W+VA0MhH6/9nPnfB0HuXEwq1K6X7M4REbz9B+LcJcW2P 6mwpeXsWiA5EhcLGyBKihQosCA== X-Google-Smtp-Source: AK7set8B92TYWEnMi5z//wnelwPvN5S0mRhyfpmmCKqwTLYj4mIZM+oE3jFBMmZQy5wqj9I2AmPJtg== X-Received: by 2002:a17:903:40c6:b0:19c:d6d0:7887 with SMTP id t6-20020a17090340c600b0019cd6d07887mr8106425pld.30.1677748372374; Thu, 02 Mar 2023 01:12:52 -0800 (PST) Received: from localhost.localdomain ([49.206.14.226]) by smtp.gmail.com with ESMTPSA id iz12-20020a170902ef8c00b0019945535973sm9850692plb.63.2023.03.02.01.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 01:12:52 -0800 (PST) From: Sunil V L To: qemu-riscv@nongnu.org, qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Andrew Jones , Anup Patel , Atish Kumar Patra , Igor Mammedov , Sunil V L , Bin Meng Subject: [PATCH V5 7/8] hw/riscv/virt.c: Initialize the ACPI tables Date: Thu, 2 Mar 2023 14:42:11 +0530 Message-Id: <20230302091212.999767-8-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230302091212.999767-1-sunilvl@ventanamicro.com> References: <20230302091212.999767-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=sunilvl@ventanamicro.com; helo=mail-pj1-x102c.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Initialize the ACPI tables if the acpi option is not disabled. Signed-off-by: Sunil V L Reviewed-by: Bin Meng Reviewed-by: Andrew Jones --- hw/riscv/virt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 9b85d5b747..8329c477a7 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -1316,6 +1316,10 @@ static void virt_machine_done(Notifier *notifier, void *data) if (kvm_enabled()) { riscv_setup_direct_kernel(kernel_entry, fdt_load_addr); } + + if (virt_is_acpi_enabled(s)) { + virt_acpi_setup(s); + } } static void virt_machine_init(MachineState *machine)