Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216125/?format=api
{ "id": 2216125, "url": "http://patchwork.ozlabs.org/api/patches/2216125/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260325211728.89204-9-philmd@linaro.org/", "project": { "id": 69, "url": "http://patchwork.ozlabs.org/api/projects/69/?format=api", "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": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260325211728.89204-9-philmd@linaro.org>", "list_archive_url": null, "date": "2026-03-25T21:17:26", "name": "[PATCH-for-11.1,08/10] target/i386: Inline VMSTATE_UINTTL_SUB_ARRAY() macro", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "104578bd00d5989211554b7886d02fb6916c58c4", "submitter": { "id": 85046, "url": "http://patchwork.ozlabs.org/api/people/85046/?format=api", "name": "Philippe Mathieu-Daudé", "email": "philmd@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260325211728.89204-9-philmd@linaro.org/mbox/", "series": [ { "id": 497511, "url": "http://patchwork.ozlabs.org/api/series/497511/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/list/?series=497511", "date": "2026-03-25T21:17:18", "name": "migration: Reduce uses of target-specific macros", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497511/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216125/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216125/checks/", "tags": {}, "related": [], "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=l962iEv6;\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 (lists.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 4fh0DK1sClz1y1G\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 08:20:01 +1100 (AEDT)", "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 1w5VcZ-0001Oz-6x; Wed, 25 Mar 2026 17:18:35 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1w5VcX-0001Lu-78\n for qemu-ppc@nongnu.org; Wed, 25 Mar 2026 17:18:33 -0400", "from mail-wm1-x336.google.com ([2a00:1450:4864:20::336])\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 1w5VcT-0001gS-F2\n for qemu-ppc@nongnu.org; Wed, 25 Mar 2026 17:18:32 -0400", "by mail-wm1-x336.google.com with SMTP id\n 5b1f17b1804b1-486fe2024a9so2256315e9.0\n for <qemu-ppc@nongnu.org>; Wed, 25 Mar 2026 14:18:28 -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-4871fb08e9esm8608925e9.0.2026.03.25.14.18.26\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Wed, 25 Mar 2026 14:18:27 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1774473508; x=1775078308; 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=Ik5dNOPzzIxkGj0tgUhxiCaEIrTWAFn/Zu/ILMDzmRk=;\n b=l962iEv6Hf+vqgql/+m3hG9OEuUq+COmY83zckbTgYN1qpxiBfRkImjUmFSh9uD1B5\n se65jCagGyFaMpKXyi6e4/cmLXdq147t5g2aWZRJZXA3lyTIUKAcL6XkveNqqlIaT9Sa\n Y/wjGB+FYlky2lfHF7g5d0Tj/D0VuEUQv9hqR9RWIueNjwawVwwiEICtVrmZShNY1Urm\n 7BNOuAcJIQJbbF6TouDAQVfQhtgpbxM8e0+VaIkpNzsG8//PVChUyElpl7H4n9ywVc9C\n 4cOhQf4GEsqBdUFkkVIrJlQeiiDKm21TPrs8ww2xB4QlQk3yh+QnNy/FIVDqqHQyU3Uk\n /8Rw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774473508; x=1775078308;\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=Ik5dNOPzzIxkGj0tgUhxiCaEIrTWAFn/Zu/ILMDzmRk=;\n b=Kc6I3pSgL/s3F5lSX4D5WoOnoAQWpH3/sVLK4pTk3uObS48yo+CkQPaW1nJHihd0mi\n TqFFw01XCxeZrjt1sd78dTqDKpRlxLcjh6FoF27bu508u+t8euhViNXA7haZMRre0JDN\n 9qM5FHqGYLG2HzgVvGyZCtrriylJwJKVG25QUk73F2MxsZk+RCTivQInFGee7jFHG+n2\n haSpysVZPkqf6LLjKOe3CoU9lVo9Vaat9bFOEjt6Wo7i5sFztIC8oayBe8lFK6NxPTdc\n z0V6opgg5pAruBO95tyrIHg6ZluRilp3wCXktXrwe9ZBxXzJCfyVvuudpSmoHLA5IoHE\n PZUQ==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCV1FdDXqmAMoUHi5BXd7JThHOwVJxFWegFAsx0sJpKYNt/nk6RNzT+RmVY/QBYXgbGULegjvnMlbg==@nongnu.org", "X-Gm-Message-State": "AOJu0Ywt0k6hziv34iZZKx0lqBkxYx71S9hf9MNAOCZFcj7SZwROVGJh\n ZLDLiZIpfK1dTdbsxwkCAuY5YDJWPXcCQ7fWsZQvfHZ/DRclpoc+WJR6o8obP/6wVYg=", "X-Gm-Gg": "ATEYQzzeYSyPbxfC7f/4C1fyycigRMpc8vVIekGN2ztMVaIV4nxG5y1MS5aLIsiCUrb\n EBMhWNYJ0oXEa/CNF8i5A/dy1wj6wYg5rLrYR6NuJITfc/jh4OwkKq+LfusJMciYo7aIfze/9sA\n khtOZpDSwcW26YkoOyfP1FXaMHWKUSfXtgj2q1ICDpmOSNDI2TSgk/v5LISHVZDZuNlh4WlV2Za\n VJrJcB64CHcM+16fIybm7Iwfd6KLCo20AH4/LAC42Y0EZJtKKvGi2VOMTXjOtKI+6t8PDtePaBk\n IT4dLT8Q49ydT+ChOXpTlk/vnhTPU4UN1EvlUjDPY6q/sH75QaAu1WFQZttco/e81lOhLm2Xh+7\n xP60vusZksJynrnRiotIFp6cc/mgcozdbCo1L9A6m1UkPLnZEnVQxDU6mgepPEdtMZptIaD4NXN\n 96rkTLFsDDypV8fgrr8diExw2ny3No3ZZj3IgncHpvF5XrO23Vp+3KCHQY1h7rtAlzzNmYnevX", "X-Received": "by 2002:a05:600c:1f12:b0:486:fdca:ea8d with SMTP id\n 5b1f17b1804b1-48716050758mr71567905e9.25.1774473507719;\n Wed, 25 Mar 2026 14:18:27 -0700 (PDT)", "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "Glenn Miles <milesg@linux.ibm.com>,\n Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,\n Nicholas Piggin <npiggin@gmail.com>, qemu-ppc@nongnu.org,\n Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>,\n Fabiano Rosas <farosas@suse.de>, Alistair Francis <alistair.francis@wdc.com>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-riscv@nongnu.org,\n Paolo Bonzini <pbonzini@redhat.com>, Artyom Tarasenko <atar4qemu@gmail.com>,\n Anton Johansson <anjo@rev.ng>, Peter Xu <peterx@redhat.com>, =?utf-8?q?Phil?=\n\t=?utf-8?q?ippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Zhao Liu <zhao1.liu@intel.com>", "Subject": "[PATCH-for-11.1 08/10] target/i386: Inline VMSTATE_UINTTL_SUB_ARRAY()\n macro", "Date": "Wed, 25 Mar 2026 22:17:26 +0100", "Message-ID": "<20260325211728.89204-9-philmd@linaro.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260325211728.89204-1-philmd@linaro.org>", "References": "<20260325211728.89204-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::336;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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": "The x86 target is the single one using the VMSTATE_UINTTL_SUB_ARRAY\nmacro. Inline it to avoid further uses of this legacy macro on other\ntargets.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n include/migration/cpu.h | 4 ----\n target/i386/machine.c | 6 +++++-\n 2 files changed, 5 insertions(+), 5 deletions(-)", "diff": "diff --git a/include/migration/cpu.h b/include/migration/cpu.h\nindex 82a81b5d895..ea411d863ad 100644\n--- a/include/migration/cpu.h\n+++ b/include/migration/cpu.h\n@@ -12,16 +12,12 @@\n VMSTATE_UINT64_V(_f, _s, _v)\n #define VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, _v) \\\n VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v)\n-#define VMSTATE_UINTTL_SUB_ARRAY(_f, _s, _start, _num) \\\n- VMSTATE_UINT64_SUB_ARRAY(_f, _s, _start, _num)\n #define vmstate_info_uinttl vmstate_info_uint64\n #else\n #define VMSTATE_UINTTL_V(_f, _s, _v) \\\n VMSTATE_UINT32_V(_f, _s, _v)\n #define VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, _v) \\\n VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v)\n-#define VMSTATE_UINTTL_SUB_ARRAY(_f, _s, _start, _num) \\\n- VMSTATE_UINT32_SUB_ARRAY(_f, _s, _start, _num)\n #define vmstate_info_uinttl vmstate_info_uint32\n #endif\n \ndiff --git a/target/i386/machine.c b/target/i386/machine.c\nindex 1f5c517e562..16b65bddcdd 100644\n--- a/target/i386/machine.c\n+++ b/target/i386/machine.c\n@@ -1770,7 +1770,11 @@ const VMStateDescription vmstate_x86_cpu = {\n .pre_save = cpu_pre_save,\n .post_load = cpu_post_load,\n .fields = (const VMStateField[]) {\n- VMSTATE_UINTTL_SUB_ARRAY(env.regs, X86CPU, 0, CPU_NB_REGS),\n+#if TARGET_LONG_BITS == 64\n+ VMSTATE_UINT64_SUB_ARRAY(env.regs, X86CPU, 0, CPU_NB_REGS),\n+#else\n+ VMSTATE_UINT32_SUB_ARRAY(env.regs, X86CPU, 0, CPU_NB_REGS),\n+#endif\n VMSTATE_UINTTL(env.eip, X86CPU),\n VMSTATE_UINTTL(env.eflags, X86CPU),\n VMSTATE_UINT32(env.hflags, X86CPU),\n", "prefixes": [ "PATCH-for-11.1", "08/10" ] }