From nobody Sun Feb 8 12:32:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.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=1556434186; cv=none; d=zoho.com; s=zohoarc; b=DcNgpDwZHHHInamnrj+XdLWenxD/O9K1mEx9NvsO1zcU698gpSuQvv6nhvIKKc7KI97aDdVDsSCkjTNkh9bv/TeMH60YxUA0RdYmyaOESJwW1Bu0nNdZfAWBn0IR2SGoWmcmM7NEgM2mWCv9czn385LK6OigxDmFGwLLWYKw2ds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556434186; h=Content-Type: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:ARC-Authentication-Results; bh=3iejQiP+LpKpQsz1+E2AxbtmALXGXnd5u8NFu63fPPI=; b=E5bDE6MA0IeM5h6azSjBhoQTimYq7zwklsBKldwZ3ZIlW1VSMzhPvBCyBsv9SPzrei42bUjXqbpWxazpw+ZT1bv4zFdhw8UUDzzQNsrKC7e9mNPtzHvwS5r6DajbBYliC7XNU95kb+uAq6M5GdGD3DVeEAiZ8aegvkiEaiUDKyM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1556434186494926.4606566981081; Sat, 27 Apr 2019 23:49:46 -0700 (PDT) Received: from localhost ([127.0.0.1]:40615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdd0-0001AN-Is for importer@patchew.org; Sun, 28 Apr 2019 02:49:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdbM-0008RV-IT for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:47:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKdbL-0005fp-9Y for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:47:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38114) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKdbK-0005e6-Sz for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:47:51 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 034D730BCE67; Sun, 28 Apr 2019 06:47:50 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-62.brq.redhat.com [10.40.204.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3CAC0171EE; Sun, 28 Apr 2019 06:47:43 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Sun, 28 Apr 2019 08:47:26 +0200 Message-Id: <20190428064731.29913-2-philmd@redhat.com> In-Reply-To: <20190428064731.29913-1-philmd@redhat.com> References: <20190428064731.29913-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Sun, 28 Apr 2019 06:47:50 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 1/6] hw/acpi: Move the IPMI stub to the stubs/ directory 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: Corey Minyard , "Michael S. Tsirkin" , Aleksandar Rikalo , Aleksandar Markovic , Igor Mammedov , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Move the IPMI stub file to the stubs/ directory to simplify the hw/acpi Makefile. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Corey Minyard --- MAINTAINERS | 1 + hw/acpi/Makefile.objs | 3 +-- stubs/Makefile.objs | 1 + hw/acpi/ipmi-stub.c =3D> stubs/ipmi.c | 0 4 files changed, 3 insertions(+), 2 deletions(-) rename hw/acpi/ipmi-stub.c =3D> stubs/ipmi.c (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 23db6f8408a..e1681eca5cb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1309,6 +1309,7 @@ S: Maintained F: include/hw/ipmi/* F: hw/ipmi/* F: hw/smbios/smbios_type_38.c +F: stubs/ipmi.c F: tests/ipmi* T: git https://github.com/cminyard/qemu.git master-ipmi-rebase =20 diff --git a/hw/acpi/Makefile.objs b/hw/acpi/Makefile.objs index 2d46e3789ae..4e302feb885 100644 --- a/hw/acpi/Makefile.objs +++ b/hw/acpi/Makefile.objs @@ -14,8 +14,7 @@ common-obj-y +=3D aml-build.o common-obj-$(CONFIG_TPM) +=3D tpm.o =20 common-obj-$(CONFIG_IPMI) +=3D ipmi.o -common-obj-$(call lnot,$(CONFIG_IPMI)) +=3D ipmi-stub.o else common-obj-y +=3D acpi-stub.o endif -common-obj-$(CONFIG_ALL) +=3D acpi-stub.o ipmi-stub.o +common-obj-$(CONFIG_ALL) +=3D acpi-stub.o diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 269dfa58326..36bb9ff0b1d 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -9,6 +9,7 @@ stub-obj-y +=3D error-printf.o stub-obj-y +=3D fdset.o stub-obj-y +=3D gdbstub.o stub-obj-y +=3D get-vm-name.o +stub-obj-y +=3D ipmi.o stub-obj-y +=3D iothread.o stub-obj-y +=3D iothread-lock.o stub-obj-y +=3D is-daemonized.o diff --git a/hw/acpi/ipmi-stub.c b/stubs/ipmi.c similarity index 100% rename from hw/acpi/ipmi-stub.c rename to stubs/ipmi.c --=20 2.20.1 From nobody Sun Feb 8 12:32:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.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=1556434186; cv=none; d=zoho.com; s=zohoarc; b=dIwI3OT821z03+6ZB8iwwQkjWOL/0jraa0V++2JEKN7WTYOgpm5za3O2T/yEdvfmfdQ/Qwd4AE8U/CljoZt6mhShsPc2kZkeG8z0MGt01CamusZqiKh/dZLGvJfoq4yOBqMKHnuzLMIeFovtTFDOof+L8x37bfItd8NIIHnzN+U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556434186; h=Content-Type: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:ARC-Authentication-Results; bh=y/HfgjWuInyXJQlq/GdLJrRu9vU5WEPGNLYrDwbAzwk=; b=Z1+uPWlG3qcqDLfhS5cae48RODQGjW7NPYWBkFI6BJUcmtdLFuBA53/5s+ou7ljZ80yB4qM1GBTEQ5aDqAJ/pIuwiJEOIKBFCQwAD56dQXkr25VbAH98T9FytHGNnOqlRYN9Hk/d6cApvFHuzRwNCm3yBpl2QSwZU9XhI9zRSyQ= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1556434186181555.9145662879966; Sat, 27 Apr 2019 23:49:46 -0700 (PDT) Received: from localhost ([127.0.0.1]:40617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdd6-0001FP-4D for importer@patchew.org; Sun, 28 Apr 2019 02:49:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdbS-0008WS-Fn for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKdbQ-0005sm-Vb for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:47:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35710) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKdbP-0005jH-2p for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:47:56 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4D5638666B; Sun, 28 Apr 2019 06:47:54 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-62.brq.redhat.com [10.40.204.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C8B96171EE; Sun, 28 Apr 2019 06:47:50 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Sun, 28 Apr 2019 08:47:27 +0200 Message-Id: <20190428064731.29913-3-philmd@redhat.com> In-Reply-To: <20190428064731.29913-1-philmd@redhat.com> References: <20190428064731.29913-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sun, 28 Apr 2019 06:47:54 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 2/6] hw/acpi: Move the ACPI stub to the stubs/ directory 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: Corey Minyard , "Michael S. Tsirkin" , Aleksandar Rikalo , Aleksandar Markovic , Igor Mammedov , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Move the ACPI stub file to the stubs/ directory to greatly simplify the hw/acpi Makefile. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + hw/acpi/Makefile.objs | 5 ----- stubs/Makefile.objs | 1 + hw/acpi/acpi-stub.c =3D> stubs/acpi.c | 0 4 files changed, 2 insertions(+), 5 deletions(-) rename hw/acpi/acpi-stub.c =3D> stubs/acpi.c (100%) diff --git a/MAINTAINERS b/MAINTAINERS index e1681eca5cb..d05a3d36511 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1357,6 +1357,7 @@ F: hw/acpi/* F: hw/smbios/* F: hw/i386/acpi-build.[hc] F: hw/arm/virt-acpi-build.c +F: stubs/acpi.c F: tests/bios-tables-test.c F: tests/acpi-utils.[hc] F: tests/data/acpi/ diff --git a/hw/acpi/Makefile.objs b/hw/acpi/Makefile.objs index 4e302feb885..73eca4f7dff 100644 --- a/hw/acpi/Makefile.objs +++ b/hw/acpi/Makefile.objs @@ -6,15 +6,10 @@ common-obj-$(CONFIG_ACPI_MEMORY_HOTPLUG) +=3D memory_hotp= lug.o common-obj-$(CONFIG_ACPI_CPU_HOTPLUG) +=3D cpu.o common-obj-$(CONFIG_ACPI_NVDIMM) +=3D nvdimm.o common-obj-$(CONFIG_ACPI_VMGENID) +=3D vmgenid.o -common-obj-$(call lnot,$(CONFIG_ACPI_X86)) +=3D acpi-stub.o =20 common-obj-y +=3D acpi_interface.o common-obj-y +=3D bios-linker-loader.o common-obj-y +=3D aml-build.o common-obj-$(CONFIG_TPM) +=3D tpm.o - common-obj-$(CONFIG_IPMI) +=3D ipmi.o -else -common-obj-y +=3D acpi-stub.o endif -common-obj-$(CONFIG_ALL) +=3D acpi-stub.o diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 36bb9ff0b1d..47ee66a71f2 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -1,3 +1,4 @@ +stub-obj-y +=3D acpi.o stub-obj-y +=3D bdrv-next-monitor-owned.o stub-obj-y +=3D blk-commit-all.o stub-obj-y +=3D blockdev-close-all-bdrv-states.o diff --git a/hw/acpi/acpi-stub.c b/stubs/acpi.c similarity index 100% rename from hw/acpi/acpi-stub.c rename to stubs/acpi.c --=20 2.20.1 From nobody Sun Feb 8 12:32:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.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=1556434290; cv=none; d=zoho.com; s=zohoarc; b=bO0L6bVZHs95eJb10OYGUOoajrJ8KBRngfGtD8KUPW8n4evAPQpaRsC70pHtXlo4SWxRCvGN0AI/KFCydfa8iIzZPGUP/cw2PFBtMT5WkuvzR9WdIFomCmoptYA+dxrBNdjeK0P9h/o6+P7FRdxTsnO3biHP5gRN2n4a6qZMEXs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556434290; h=Content-Type: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:ARC-Authentication-Results; bh=WwSQq3f0/EtIerQobmqbpH0NB0K5ELcZDYTiMfm205w=; b=ZNjKhzgtaHUaJbClDa2BquCWdFg8drFqOsARgAPJt7sPdaxwatdouFqHR09IJmYboJRVZjGQpmIKq+HMHfc2vl6Bfy36dxku9WIgN/P/3oen/GhtfTVkHJbeMuxsnGQni3y9sZIyoJ6YlGR1SEZ9J6ERPq3OtdxienIES9SBDEw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1556434290800680.1040303011912; Sat, 27 Apr 2019 23:51:30 -0700 (PDT) Received: from localhost ([127.0.0.1]:40662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdem-0003BI-Qz for importer@patchew.org; Sun, 28 Apr 2019 02:51:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdba-0000DE-Dd for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKdbX-00062e-W9 for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51810) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKdbX-000626-8e for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:03 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D4373086203; Sun, 28 Apr 2019 06:48:02 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-62.brq.redhat.com [10.40.204.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DB90B58821; Sun, 28 Apr 2019 06:47:54 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Sun, 28 Apr 2019 08:47:28 +0200 Message-Id: <20190428064731.29913-4-philmd@redhat.com> In-Reply-To: <20190428064731.29913-1-philmd@redhat.com> References: <20190428064731.29913-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Sun, 28 Apr 2019 06:48:02 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 3/6] hw/acpi: Simplify the Makefile logic 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: Corey Minyard , "Michael S. Tsirkin" , Aleksandar Rikalo , Aleksandar Markovic , Igor Mammedov , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Simplify the Makefile logic to ease further modifications/reviews. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/acpi/Makefile.objs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/hw/acpi/Makefile.objs b/hw/acpi/Makefile.objs index 73eca4f7dff..b5515c626a6 100644 --- a/hw/acpi/Makefile.objs +++ b/hw/acpi/Makefile.objs @@ -1,4 +1,3 @@ -ifeq ($(CONFIG_ACPI),y) common-obj-$(CONFIG_ACPI_X86) +=3D core.o piix4.o pcihp.o common-obj-$(CONFIG_ACPI_X86_ICH) +=3D ich9.o tco.o common-obj-$(CONFIG_ACPI_CPU_HOTPLUG) +=3D cpu_hotplug.o @@ -6,10 +5,8 @@ common-obj-$(CONFIG_ACPI_MEMORY_HOTPLUG) +=3D memory_hotpl= ug.o common-obj-$(CONFIG_ACPI_CPU_HOTPLUG) +=3D cpu.o common-obj-$(CONFIG_ACPI_NVDIMM) +=3D nvdimm.o common-obj-$(CONFIG_ACPI_VMGENID) +=3D vmgenid.o - -common-obj-y +=3D acpi_interface.o -common-obj-y +=3D bios-linker-loader.o -common-obj-y +=3D aml-build.o -common-obj-$(CONFIG_TPM) +=3D tpm.o -common-obj-$(CONFIG_IPMI) +=3D ipmi.o -endif +common-obj-$(CONFIG_ACPI) +=3D acpi_interface.o +common-obj-$(CONFIG_ACPI) +=3D bios-linker-loader.o +common-obj-$(CONFIG_ACPI) +=3D aml-build.o +common-obj-$(call land,$(CONFIG_ACPI),$(CONFIG_TPM)) +=3D tpm.o +common-obj-$(call land,$(CONFIG_ACPI),$(CONFIG_IPMI)) +=3D ipmi.o --=20 2.20.1 From nobody Sun Feb 8 12:32:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.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=1556434307; cv=none; d=zoho.com; s=zohoarc; b=AulRWCADNuokWaK99sMs86sjEuH27wa+2MXX1ivp5WipU8z0krGtsaQ9ai6OOBUx5vMBborb/kM8tVOSIXq5vYhsFrzKseNarIa9oRCTyzLRFPmh3vD014vfP3wz20bOSOKUNe/Htx5H42qVkA/ZVnzqz9JIMRjhK74tHIkM3g0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556434307; h=Content-Type: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:ARC-Authentication-Results; bh=i+DChQ9vu4RXWcpBgvLI2/IIpqtLnMGKCmmmiD51X1Q=; b=cl7RV9O5J+Uo/yXWEwHChR5DCuBfLnohaR5pyXzfNFUIAjhyTItsL+kZG3DOT+9fgRQckuZXzE17LLpwNehYuKgZG6TyrG0TKPW4XtJZgVgUJV0Gbx7hJwSsrBNQnPogmjvOCCJjlNoEAUSt8yHVG6QPvGMQ/ew6Lgoq9iupKg0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1556434307852751.2495384221936; Sat, 27 Apr 2019 23:51:47 -0700 (PDT) Received: from localhost ([127.0.0.1]:40664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdf1-0003Kn-W5 for importer@patchew.org; Sun, 28 Apr 2019 02:51:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdbf-0000Jp-2J for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKdbe-0006Ab-5v for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35726) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKdbc-00065W-8S for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:08 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 93FFB8666B; Sun, 28 Apr 2019 06:48:06 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-62.brq.redhat.com [10.40.204.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 161B5171EE; Sun, 28 Apr 2019 06:48:02 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Sun, 28 Apr 2019 08:47:29 +0200 Message-Id: <20190428064731.29913-5-philmd@redhat.com> In-Reply-To: <20190428064731.29913-1-philmd@redhat.com> References: <20190428064731.29913-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sun, 28 Apr 2019 06:48:06 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 4/6] hw/acpi: Always build the 'core' ACPI functions 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: Corey Minyard , "Michael S. Tsirkin" , Aleksandar Rikalo , Aleksandar Markovic , Igor Mammedov , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" The 'core' ACPI functions are not X86-specific. Let this file be built unconditionally, this will allow us to use ACPI on non-X86 architectures. Suggested-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/acpi/Makefile.objs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/acpi/Makefile.objs b/hw/acpi/Makefile.objs index b5515c626a6..0427253816b 100644 --- a/hw/acpi/Makefile.objs +++ b/hw/acpi/Makefile.objs @@ -1,4 +1,5 @@ -common-obj-$(CONFIG_ACPI_X86) +=3D core.o piix4.o pcihp.o +common-obj-$(CONFIG_ACPI) +=3D core.o +common-obj-$(CONFIG_ACPI_X86) +=3D piix4.o pcihp.o common-obj-$(CONFIG_ACPI_X86_ICH) +=3D ich9.o tco.o common-obj-$(CONFIG_ACPI_CPU_HOTPLUG) +=3D cpu_hotplug.o common-obj-$(CONFIG_ACPI_MEMORY_HOTPLUG) +=3D memory_hotplug.o --=20 2.20.1 From nobody Sun Feb 8 12:32:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.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=1556434411; cv=none; d=zoho.com; s=zohoarc; b=izpr4WZY5R6rVQxjPPcTGO7ZNrvisJui+O6CEL96FgRKI7PoIIxeKWqosuJqJX1C9MJNz6X7wO/w79dRHDVa1krDHz0Mizp8CRFhYiIv+d6SmsFCT4glUljV8QjuJPaLBFBJTSZp06OC6EWcOmwAcSl4IJ/agb/kx2Ml9isaORY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556434411; h=Content-Type: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:ARC-Authentication-Results; bh=28fBolWcvyl/tSs9cAb0qBmjzSui0FIj/zlXbCfVcRk=; b=RoKajSX8UcPlCSgbI3vGtyWZlKbpz5HNW7DKWxbDytQLJVU2C8odWAXJc+rAk4MPBea3LsLbLOlLfA97T8AIvS0mLxwWd1wL9MQpfHWXvZLSS44mE6OUiseha6O1rXLyaJEiTHrYEjMsF6UxL1XQR/B0NMAl3NzX9zZRQlqwzeU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1556434411635496.81793479017153; Sat, 27 Apr 2019 23:53:31 -0700 (PDT) Received: from localhost ([127.0.0.1]:40676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdgk-0004VU-Om for importer@patchew.org; Sun, 28 Apr 2019 02:53:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdbf-0000K2-94 for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKdbe-0006Aj-Bl for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44862) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKdbe-0006AH-6W for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:10 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 731B73082E8F; Sun, 28 Apr 2019 06:48:09 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-62.brq.redhat.com [10.40.204.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 10E1A171EE; Sun, 28 Apr 2019 06:48:06 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Sun, 28 Apr 2019 08:47:30 +0200 Message-Id: <20190428064731.29913-6-philmd@redhat.com> In-Reply-To: <20190428064731.29913-1-philmd@redhat.com> References: <20190428064731.29913-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Sun, 28 Apr 2019 06:48:09 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 5/6] stubs: Add missing ACPI symbols 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: Corey Minyard , "Michael S. Tsirkin" , Aleksandar Rikalo , Aleksandar Markovic , Igor Mammedov , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" When building with ACPI disabled, we get: /usr/bin/ld: hw/i386/pc.o: in function `bochs_bios_init': /source/qemu/hw/i386/pc.c:1017: undefined reference to `acpi_tables_len' /usr/bin/ld: /source/qemu/hw/i386/pc.c:1017: undefined reference to `acpi= _tables' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:204: qemu-system-x86_64] Error 1 These symbols are indeed declared as extern in "hw/acpi/acpi.h". Add them as stub to satisfy the linker. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- stubs/acpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stubs/acpi.c b/stubs/acpi.c index 4c9d081ed48..cd0119f9fb1 100644 --- a/stubs/acpi.c +++ b/stubs/acpi.c @@ -23,6 +23,10 @@ #include "qapi/qmp/qerror.h" #include "hw/acpi/acpi.h" =20 +size_t acpi_tables_len; + +char unsigned *acpi_tables; + void acpi_table_add(const QemuOpts *opts, Error **errp) { error_setg(errp, QERR_UNSUPPORTED); --=20 2.20.1 From nobody Sun Feb 8 12:32:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.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=1556434396; cv=none; d=zoho.com; s=zohoarc; b=fHADTlCHMtl22nS1Oq0oZ21Xco4roAEy91CPKKIVreJZ2/Gv3+o8kIP9zMf5pqkuEl4F3ObWDRNbMSexmTAexg+zmf7ftgpjggA0S+BwM++mySMwfz9jRwTYtkQsE44EPlsM3qy7qLMjE7xqg3jdkOQhvAd0+0EMQdS6h5P4vR8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556434396; h=Content-Type: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:ARC-Authentication-Results; bh=kK2UBK18jLAs4BH2VCXwJaHwcJgR9WJezYQDqCWpzqI=; b=cbtLujY/PRMRKipD3wG1nzkjq+O/duZS0hQ+1YddG/wWnSUxL6GNOToK710DoHlFMr5tFagBsOjl5QFfPabfhjVwW+eX+Otby9lR/HLK3fc//DpyQN/ZBNslKHce53aCoJk2YrV6nRWDM1TrAK7uCDBb+UhOOBmAR/gQFm0KcLk= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1556434396517570.6909056725315; Sat, 27 Apr 2019 23:53:16 -0700 (PDT) Received: from localhost ([127.0.0.1]:40674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdgV-0004K4-LT for importer@patchew.org; Sun, 28 Apr 2019 02:53:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKdbj-0000OR-Q9 for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKdbi-0006Nf-TI for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41252) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKdbi-0006KE-NK for qemu-devel@nongnu.org; Sun, 28 Apr 2019 02:48:14 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EE77C81F35; Sun, 28 Apr 2019 06:48:13 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-62.brq.redhat.com [10.40.204.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 430EC171EE; Sun, 28 Apr 2019 06:48:09 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Sun, 28 Apr 2019 08:47:31 +0200 Message-Id: <20190428064731.29913-7-philmd@redhat.com> In-Reply-To: <20190428064731.29913-1-philmd@redhat.com> References: <20190428064731.29913-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sun, 28 Apr 2019 06:48:14 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 6/6] vl: Do not set acpi_enabled when ACPI is disabled at build time 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: Corey Minyard , "Michael S. Tsirkin" , Aleksandar Rikalo , Aleksandar Markovic , Igor Mammedov , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" When building with CONFIG_ACPI disabled, the 'acpi_enabled' is still initialized to '1' (enabled). Remove the confusion by moving the variable to hw/core/acpi.c, and adding a similar stub. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/acpi/core.c | 1 + stubs/acpi.c | 2 ++ vl.c | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index 9ed1629f367..b2730aec8a0 100644 --- a/hw/acpi/core.c +++ b/hw/acpi/core.c @@ -59,6 +59,7 @@ static const char unsigned dfl_hdr[ACPI_TABLE_HDR_SIZE - = ACPI_TABLE_PFX_SIZE] =3D "QEMU\1\0\0\0" /* ASL compiler ID (4), version (4) */ ; =20 +int acpi_enabled =3D 1; char unsigned *acpi_tables; size_t acpi_tables_len; =20 diff --git a/stubs/acpi.c b/stubs/acpi.c index cd0119f9fb1..f1ef6b8e795 100644 --- a/stubs/acpi.c +++ b/stubs/acpi.c @@ -23,6 +23,8 @@ #include "qapi/qmp/qerror.h" #include "hw/acpi/acpi.h" =20 +int acpi_enabled; + size_t acpi_tables_len; =20 char unsigned *acpi_tables; diff --git a/vl.c b/vl.c index ff5dfb6fbc3..c9364b4ec10 100644 --- a/vl.c +++ b/vl.c @@ -166,7 +166,6 @@ int smp_cpus; unsigned int max_cpus; int smp_cores =3D 1; int smp_threads =3D 1; -int acpi_enabled =3D 1; int no_hpet =3D 0; int fd_bootchk =3D 1; static int no_reboot; --=20 2.20.1