{"id":2222177,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2222177/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260410195323.17937-19-philmd@linaro.org/","project":{"id":69,"url":"http://patchwork.ozlabs.org/api/1.1/projects/69/?format=json","name":"QEMU powerpc development","link_name":"qemu-ppc","list_id":"qemu-ppc.nongnu.org","list_email":"qemu-ppc@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260410195323.17937-19-philmd@linaro.org>","date":"2026-04-10T19:53:12","name":"[v2,18/27] system: Expose 'arch_init.h' as 'qemu/target-arch-defs.h'","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"8fd46d43b812eb68ccb998860b65fc45fb24013b","submitter":{"id":85046,"url":"http://patchwork.ozlabs.org/api/1.1/people/85046/?format=json","name":"Philippe Mathieu-Daudé","email":"philmd@linaro.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260410195323.17937-19-philmd@linaro.org/mbox/","series":[{"id":499497,"url":"http://patchwork.ozlabs.org/api/1.1/series/499497/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-ppc/list/?series=499497","date":"2026-04-10T19:52:55","name":"monitor: Remove need of per-target handlers","version":2,"mbox":"http://patchwork.ozlabs.org/series/499497/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2222177/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2222177/checks/","tags":{},"headers":{"Return-Path":"<qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=Ks83eXtn;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsndr0XFbz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 05:57:36 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-ppc-bounces@nongnu.org>)\n\tid 1wBHx7-0004JS-VG; Fri, 10 Apr 2026 15:55:42 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1wBHx6-0004Gq-Pk\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:55:40 -0400","from mail-wm1-x335.google.com ([2a00:1450:4864:20::335])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1wBHx3-0002hS-6q\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:55:40 -0400","by mail-wm1-x335.google.com with SMTP id\n 5b1f17b1804b1-488b0e1b870so37243045e9.2\n for <qemu-ppc@nongnu.org>; Fri, 10 Apr 2026 12:55:36 -0700 (PDT)","from localhost.localdomain (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488d681ea59sm28066985e9.14.2026.04.10.12.55.34\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 10 Apr 2026 12:55:35 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775850935; x=1776455735; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=px/O9JgpOPO/Ufbv2ZpzWXAnxI26EBsW5Ud+Y2G0TJ8=;\n b=Ks83eXtnQys7Wkjjvyiz47E7DXhgvXg76+EYFntvHUnQcW7DinCM2UnntIU37AKQAj\n MLt0AvBk3IV8ZaQfzRZ250sr7MkQ5AGW6HV/yVF8kCeRLukARWM3GBAnYpixgKJW4zbb\n xRnXpJqv/7t+Xqr1CO6dyf6ot9aJh0D3XGu3r7Mlxv3OrTl7L1PzNkB7iCgAkkQJatAH\n 27KluE3X9KBkJDCAYITjfCtuHtnQEuYJIKwtxrIsUCcibiqrQ2SSxlhC+7qpUVfhB+iH\n PJCzPRTkAloNATphqHxt0BtrLXasJvLhwjJIVHwHSmMtEtpp4tPFDUxNcWBeuetTQumP\n Ipfw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775850935; x=1776455735;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=px/O9JgpOPO/Ufbv2ZpzWXAnxI26EBsW5Ud+Y2G0TJ8=;\n b=XclXK7a6pbJjAxbZxD4HaVbT/P4NTbB2EHpwDAcwPXzsqw5egr/oQsMf7o6vL1fEJn\n bkVRXaygiqxmepfdoGuNbpj2bOAMCnf1pq+cgndFxY3ACLEPJsalN/whwsxDkxTFsyGK\n LcX7MltNt9e4NRe7+9vCvz0+YbM4RupwsiU0fzbnoTL9zBYSk5papVI3sELZA2NIU07C\n UMKoVhNOhYi4spuUeqp/UAg57cffjfv9MBAtOc121Z4APiFAtFuvVwAgulGa/5KlWWmO\n YhN1yy1ipirzayz05Tpya3ajBmDeExYQ/UPNk3pLS+FFn4IbakwjFswMdSI5Z+ykpb12\n IdTg==","X-Forwarded-Encrypted":"i=1;\n AJvYcCXhw5/We8rcoFL4IzmfulHLo414zPAOv8DT1geGALrQ36zb7hasjMXPeKHU+3wOqXc8lu9a0ZSCLA==@nongnu.org","X-Gm-Message-State":"AOJu0Yyon8Bc9Rye8uuJahNm0kQaO4zhT0xVi+PDxFSFDnMmytxToDyx\n jEe0djUuX5hPnha3ERgMVO8SBWRui0UDLiUhZ+HsSRs/ILL8nAh0nmCfFwuLp5tuG7s=","X-Gm-Gg":"AeBDieteRpx4p46o0dlrlGfmua+L4QT81jr4WgVHhg6jzm4KC1PAhlBK2Xd1NHBJgA0\n xZsb0+sj8aYYMN5U8eReyY6EQPJn0ToxXipPRQCPGn/POeUatxr7oV/8EVez+It+nXxilQZVSFW\n 1m9lXc52rGtCQSoOeUMeLHTjI56XMqlByPbqMFQ+XDfTsS55qeg0S+Tl89uHjd9Mz4Db9eImGrr\n XYQIebjX4WLDseIRONG8vJ2z9/CNqnUBc9DvvOcB3kl3A2hpJ+tygwaEDSY3FyWQGPut6+VG3yW\n 1Y9Fei0N/lIsmkUErLV1rQuztAhdfqgO9oGL/kkGmFFzXtXMnxzd6PbzTTx3Ws4vBtFr13TffB3\n i2qMNWLPcM0+MjpS9gDOodT0xhlRN+MPKkO83hT3emMDT4TfG1RCsWwVRYxnveyvtRKROkLlNFP\n m/rxLcFvhwNBbPjJh6bp/bBPd5GooVhEArZS+lMmpufU/RiP9RSEaO3yQ2j0eLX7tfT656EiSe","X-Received":"by 2002:a05:600c:5298:b0:488:c014:34da with SMTP id\n 5b1f17b1804b1-488d688687cmr63654455e9.26.1775850935538;\n Fri, 10 Apr 2026 12:55:35 -0700 (PDT)","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","To":"qemu-devel@nongnu.org","Cc":"Richard Henderson <richard.henderson@linaro.org>,\n \"Dr. David Alan Gilbert\" <dave@treblig.org>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>, qemu-riscv@nongnu.org,\n Markus Armbruster <armbru@redhat.com>, qemu-s390x@nongnu.org,\n kvm@vger.kernel.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud?=\n\t=?utf-8?q?=C3=A9?= <philmd@linaro.org>,\n \"Michael S. Tsirkin\" <mst@redhat.com>,\n Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Paolo Bonzini <pbonzini@redhat.com>,\n =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>","Subject":"[PATCH v2 18/27] system: Expose 'arch_init.h' as\n 'qemu/target-arch-defs.h'","Date":"Fri, 10 Apr 2026 21:53:12 +0200","Message-ID":"<20260410195323.17937-19-philmd@linaro.org>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260410195323.17937-1-philmd@linaro.org>","References":"<20260410195323.17937-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::335;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-ppc@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<qemu-ppc.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-ppc>","List-Post":"<mailto:qemu-ppc@nongnu.org>","List-Help":"<mailto:qemu-ppc-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"We already have a file unit outside of the local system'\nfolder which include \"system/arch_init.h\". We want more files\nto use it, so make it official it is a generic header by moving\nit under include. Rename as \"qemu/base-arch-defs.h\" which is\nmore descriptive.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n system/arch_init.h => include/qemu/base-arch-defs.h | 10 ++++++++--\n hw/pci/pci.c                                        |  2 +-\n system/arch_init.c                                  |  2 +-\n system/qdev-monitor.c                               |  2 +-\n system/vl.c                                         |  2 +-\n 5 files changed, 12 insertions(+), 6 deletions(-)\n rename system/arch_init.h => include/qemu/base-arch-defs.h (92%)","diff":"diff --git a/system/arch_init.h b/include/qemu/base-arch-defs.h\nsimilarity index 92%\nrename from system/arch_init.h\nrename to include/qemu/base-arch-defs.h\nindex 0c2b1f3a5d0..f33465738c9 100644\n--- a/system/arch_init.h\n+++ b/include/qemu/base-arch-defs.h\n@@ -1,5 +1,11 @@\n-#ifndef QEMU_ARCH_INIT_H\n-#define QEMU_ARCH_INIT_H\n+/*\n+ * QEMU base architecture bit definitions\n+ *\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n+ */\n+\n+#ifndef QEMU_BASE_ARCH_DEFS_H\n+#define QEMU_BASE_ARCH_DEFS_H\n \n #include \"qapi/qapi-types-machine.h\"\n \ndiff --git a/hw/pci/pci.c b/hw/pci/pci.c\nindex 2c3657d00de..a38dffd4899 100644\n--- a/hw/pci/pci.c\n+++ b/hw/pci/pci.c\n@@ -36,7 +36,7 @@\n #include \"migration/qemu-file-types.h\"\n #include \"migration/vmstate.h\"\n #include \"net/net.h\"\n-#include \"system/arch_init.h\"\n+#include \"qemu/base-arch-defs.h\"\n #include \"system/numa.h\"\n #include \"system/runstate.h\"\n #include \"system/system.h\"\ndiff --git a/system/arch_init.c b/system/arch_init.c\nindex 604d5909ed0..1ad2f3d6f78 100644\n--- a/system/arch_init.c\n+++ b/system/arch_init.c\n@@ -22,7 +22,7 @@\n  * THE SOFTWARE.\n  */\n #include \"qemu/osdep.h\"\n-#include \"system/arch_init.h\"\n+#include \"qemu/base-arch-defs.h\"\n #include \"qemu/bitops.h\"\n #include \"qemu/target-info-qapi.h\"\n \ndiff --git a/system/qdev-monitor.c b/system/qdev-monitor.c\nindex 2ed95e83602..2e9dbb9b5c2 100644\n--- a/system/qdev-monitor.c\n+++ b/system/qdev-monitor.c\n@@ -23,7 +23,7 @@\n #include \"monitor/hmp-completion.h\"\n #include \"monitor/monitor.h\"\n #include \"monitor/qdev.h\"\n-#include \"system/arch_init.h\"\n+#include \"qemu/base-arch-defs.h\"\n #include \"system/runstate.h\"\n #include \"qapi/error.h\"\n #include \"qapi/qapi-commands-qdev.h\"\ndiff --git a/system/vl.c b/system/vl.c\nindex 246623b3196..23f1da66369 100644\n--- a/system/vl.c\n+++ b/system/vl.c\n@@ -112,7 +112,7 @@\n #include \"trace/control.h\"\n #include \"qemu/plugin.h\"\n #include \"qemu/queue.h\"\n-#include \"system/arch_init.h\"\n+#include \"qemu/base-arch-defs.h\"\n #include \"system/confidential-guest-support.h\"\n \n #include \"ui/qemu-spice.h\"\n","prefixes":["v2","18/27"]}