Message ID | 20250307223949.54040-4-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1f8d:b0:38f:210b:807b with SMTP id hj13csp2741wrb; Fri, 7 Mar 2025 14:40:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXwFkjC7HgoyU51JNg8Ccawuxt/G+1qS+cSZuBGyJ+uuBIlm0aRetxQbZRhmx3yS7GpKAR3HA==@linaro.org X-Google-Smtp-Source: AGHT+IEl/DDibDnTcrx7nFQKWCnnODqIDY2GsyQGdOIvkDvghsmBpk4BlIyLmeXM2jbohPfX8/gZ X-Received: by 2002:a05:620a:2813:b0:7c0:86c7:1a46 with SMTP id af79cd13be357-7c4e1684873mr850126085a.23.1741387248177; Fri, 07 Mar 2025 14:40:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741387248; cv=none; d=google.com; s=arc-20240605; b=DbuPXhk3Eh/Xr+xt6ZvugxTIQvxlf9hZ5Dlw5nksgC5/K0xjH9AEXXhG4PqyFUdAVI l7E90QSOYjetLMNsd77ov2rsyxcsZG/xxfngHIpaRe2YhtgnW3aWvCrtNXQwD5oU2/Pt FBDvdr52NvUNZmimWDmo7CSdy092MlcZtUNzyoylGgSL7Xjlg/fysGTExOVigbQxZd5o /G6ooKjIBPSskzDNy/2Zb9uG8lg3JpcWg7huKh6N7ZiV0CsVCDqeHNyE23Ia+2DhIw6N K72TlDYAdteUlpSAnBxe7jAHsrM/mqn3o54lIai1J1yPAiWJQo5TLaj5hy5TZAxVi33l 1YWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VODePOvWuMJyhRGr2deCbWysjZeVNWE2sWKn1Ustt/s=; fh=5sZHRtAv1g4cZ6ovoEOjlIwCffzjyNuuBfnrj4TqsM4=; b=N3y9Su+FQOpIRjQo8gekv1bhmjVq11Mp+t63xQFMVMjs0iDC5OUsx/OOSd2WU+JW+6 JNeAa/9Q0qfKAb9/FnPMVUY/oIv/cAM+/SGuz58iYjbg4NR5BT4/kWf4ZO2BuQyGpEgi cUeC62cZOyTB9SWYetj7b1zsMvaEYhc4hHUurNeAEmeBCDsYE8CEUb64N4eTxi8Vv7Wu h4Apu71sg6lrM6+Gi4oTbngmmlKUEg6qjT16EWu/3giH4n85hvuUtWLPm8Q6ipUO+fju 3yRL5/k76wr+4CvMvkJd+cg/24ggx8io/FPoqjchvjWnRV5RP+xf2MXj9oJovLmXznaW 2DPQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lzsh4w94; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c3e5547785si431235885a.579.2025.03.07.14.40.48 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Mar 2025 14:40:48 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lzsh4w94; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tqgMV-0006Ei-T0; Fri, 07 Mar 2025 17:40:11 -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 <philmd@linaro.org>) id 1tqgMT-0006Dt-DZ for qemu-devel@nongnu.org; Fri, 07 Mar 2025 17:40:09 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tqgMR-0003aF-PL for qemu-devel@nongnu.org; Fri, 07 Mar 2025 17:40:09 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-43bcf9612f4so19962185e9.3 for <qemu-devel@nongnu.org>; Fri, 07 Mar 2025 14:40:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741387206; x=1741992006; darn=nongnu.org; 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=VODePOvWuMJyhRGr2deCbWysjZeVNWE2sWKn1Ustt/s=; b=Lzsh4w94hF1W6hZV/qyS6g/OOMLJgRxQ1CcZwfjFvkR9gsDc0LpxDxRU44Nw0pLB71 YCzbMXunLMkrxipNxLuLi87wQKLGSSzYQOr36tbopug3o8h+ux6+omENInjAScgy1nNL 8RZf3GIBq+QR+bEeKC95+LXf8Y/S0wNDXFYQRFuS4CUX4knt+aXDU/GgL7dlFrTP0SMZ tnOHvXe04nETfNA//ALMlY7wyXu1wYIva2i0ruukQSruYV3CViWvfR1j7TBlxGrPg9pC 44fomUExuK1ZqubgnSXshKcaGWqYSnD9sqEXfTn6pc0Lu15HdRxuq6oSkYDZmL7zd3Ob cTwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741387206; x=1741992006; 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=VODePOvWuMJyhRGr2deCbWysjZeVNWE2sWKn1Ustt/s=; b=lEw8tHXPsr9BNbL+dZdwqWazEIV/2OwM17ZwQoqDb98GojEoVx4tzRScJDijkzSbyt n4C40Zlwb7nmPpoIb0gRJEg1NVyHi23mDrPzMulmf/8zK/zGTjySzWIJpB7/3QMT7cRP t9HFvdfAQmkSLYbdEUv7V/wLqJ3bD1OfcaONLqCC1+45f76+SAWu7KmAI+6wJwG8T85g QMmwjuyYFjPnTxB08w6Fu50FpbVTEbIoCq2Oe+kKjajRMLU4qoVRRj+rnSRgn3BPu2VH 5T4+Z2wlVDsHlGLOLtOPWg/EGJsKTKUhNE+OFSK3bLAKH7PfQLvkaPVBD4VABNeuIMBW O2Cw== X-Gm-Message-State: AOJu0YwF4wbT7KxRq6FfMgub/oYaLPswsTy8Bxp63YjTqunLeQVfNl6D wd6CRmTDxv2TXk7HcGSCLfx8YKEU+oixHP/4/QPyQ2g9oryMENX98t6TgqiPj4Z4y59UmBlP9UK wmPU= X-Gm-Gg: ASbGncvCORToVTWWlI2B3uBlHalu7JqmLcPY/1mNtwssef6q3YkDQH4L0Qds9KlySr0 Uxtrlq4ZLyuUvOmnA+g6GtHOeP0eN8BW1yA+FMzEaQDqIC3L1+nW+9kvzhR1Ng8B1LBDmCo1Pyo 5zJw5Tgu/vHwdKkd/lDa72HiVfcTMCV0kGMSbRa+ytY51XAVd4URKR9RCQv2SdVWar0SCvbaCZC Y0zkbGvAyE+noTA4tgSAHEznzn8VnbrxZ/9uV9vDznCGj44751QdARS/Oeihfc9LDASRh8gFUkw DgfpqmNpRdLeHTeDKbLffDGfPlhZo9CZQDkHr81eKoj54H7rUnpUk00EiR4nORtNX8zHAsZ/fKc BBITzDtynjAlHrQmHKt4= X-Received: by 2002:a05:600c:190f:b0:439:a1f2:50a3 with SMTP id 5b1f17b1804b1-43ce246ffabmr14923365e9.4.1741387205744; Fri, 07 Mar 2025 14:40:05 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43bcc186de4sm63546565e9.1.2025.03.07.14.40.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 07 Mar 2025 14:40:05 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Igor Mammedov <imammedo@redhat.com>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, David Hildenbrand <david@redhat.com>, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>, Ani Sinha <anisinha@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Thomas Huth <thuth@redhat.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH v2 3/7] hw/i386/fw_cfg: Check ACPI availability with acpi_builtin() Date: Fri, 7 Mar 2025 23:39:45 +0100 Message-ID: <20250307223949.54040-4-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250307223949.54040-1-philmd@linaro.org> References: <20250307223949.54040-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
hw/virtio: Build virtio-mem.c once
|
expand
|
diff --git a/hw/i386/fw_cfg.c b/hw/i386/fw_cfg.c index d08aefa0291..a7f1b60b98c 100644 --- a/hw/i386/fw_cfg.c +++ b/hw/i386/fw_cfg.c @@ -145,10 +145,10 @@ FWCfgState *fw_cfg_arch_create(MachineState *ms, */ fw_cfg_add_i16(fw_cfg, FW_CFG_MAX_CPUS, apic_id_limit); fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, ms->ram_size); -#ifdef CONFIG_ACPI - fw_cfg_add_bytes(fw_cfg, FW_CFG_ACPI_TABLES, - acpi_tables, acpi_tables_len); -#endif + if (acpi_builtin()) { + fw_cfg_add_bytes(fw_cfg, FW_CFG_ACPI_TABLES, + acpi_tables, acpi_tables_len); + } fw_cfg_add_i32(fw_cfg, FW_CFG_IRQ0_OVERRIDE, 1); fw_cfg_add_bytes(fw_cfg, FW_CFG_HPET, &hpet_fw_cfg, sizeof(hpet_fw_cfg));