get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2222181/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2222181,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222181/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260410195323.17937-23-philmd@linaro.org/",
    "project": {
        "id": 69,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260410195323.17937-23-philmd@linaro.org>",
    "date": "2026-04-10T19:53:16",
    "name": "[v2,22/27] monitor: Do not check TARGET_I386 to build target/i386/ commands",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "dcc08de8fbc83f52f64067627dbb74192e6e4bc6",
    "submitter": {
        "id": 85046,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/85046/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "philmd@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260410195323.17937-23-philmd@linaro.org/mbox/",
    "series": [
        {
            "id": 499497,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499497/?format=api",
            "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/2222181/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222181/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=HR6rYuG7;\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 4fsndy6sVGz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 05:57:42 +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 1wBHxb-0007Op-2J; Fri, 10 Apr 2026 15:56:12 -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 1wBHxZ-0007EY-HM\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:56:09 -0400",
            "from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d])\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 1wBHxV-0003oe-Ck\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:56:08 -0400",
            "by mail-wm1-x32d.google.com with SMTP id\n 5b1f17b1804b1-482f454be5bso26608655e9.0\n for <qemu-ppc@nongnu.org>; Fri, 10 Apr 2026 12:56:04 -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-488d525c931sm98635955e9.0.2026.04.10.12.56.02\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 10 Apr 2026 12:56:03 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775850964; x=1776455764; 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=k99xMD4s012E4So2wpbCNS02HNMrfRabi5ydC/W3ahM=;\n b=HR6rYuG7MCfqMjkRpYpiB9r9Pt99jtuZP6ntxr9DHjMPTiFKjZ24GVbQyzxAk5Cyl4\n Fl1LGtMb4fqlP9Yg805AYPplTqd08RwO6ZMUeOu8IpMADS2CYu3S2kzkjuDXtPKDkCut\n hOo6etvObrAk2qGeokHR62N9hu4zYW3dYgx1nbqXTg4wsghc6IhA1YHOMWX7lq7whnzx\n 45/IEFQjvyEZ/4dMeWBzFNHz0VCAhV5M8LaGXfc0VeIWoinPuj/mzIMksCRcZNbGi3Gg\n poQI+Lt7CccRV6k+BDg2s4N888Djc+xc5gTl9oPaToDkgIdtnBVIH5TcWcjA+2aoziMt\n vXsw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775850964; x=1776455764;\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=k99xMD4s012E4So2wpbCNS02HNMrfRabi5ydC/W3ahM=;\n b=mTPRpIc9p/rjxE0bivrWccdf1NdXuU0bVJljmvqiiCuesWww9oG1PftvH0YHSeK5ex\n wf5grsZEIUWLv5CIb8QWuursTtfp5OQqzckuInJ+WVWoRKDjmAgTQEPaZ8QUTSHtjTad\n /gfuJkU6RPElmU3pSgMM9jlfDARpGtREqMperDjg0Q2dGXgTtIcW24cWZEemMrfn7L1h\n KkcT+iOb7Fsarmtvanxabpq3R0+mT338Qav2bSkHG4LwwCfgzu2AJPRLmNaGLFkZGbj3\n nr+bVHL0agB+vSmnGGs5kwR/2dco8JICgG8LGaYlHt02o0sDRAqrezsST5/Zv4zyiZi9\n gqdg==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCVbhjYmMNjSjODsKXx2NefbLrbjt9VkqQcEvkMWGQVrRzeQGaKgu+OyRowDYvzrXL5YSVLOMNGWJg==@nongnu.org",
        "X-Gm-Message-State": "AOJu0Yz/c58QT/gCqPe1K6qcri0LGJODoPyKtxs9i9dTdlLhg8SPCPIP\n 6/rM2GXPzVQmQzo8sdEN5OINzKzUSrGOl9sULJWVHyyl89oICwm/KQ6QoCcNRSeF8Wo=",
        "X-Gm-Gg": "AeBDiesdVzTo2GFnF+DeGdM8eupzlphKW0dXwtgUOGJBkzwJNdGBVlfcZiPjaquNPBo\n Jdory/Td7AFEd7isEll10uoL1J2bsNCPg/KqvCMDsYIq+cnhtTOlDWHZ6sdMWXr8Jn9iZE3fayV\n 6Zv6ZPbkmEBbpu1YW3gH+N5DdDBMz2eaQN9maGfccczOL2YBnMfUHNZZxS29LAStkV2W1y653JK\n d5K+2D5RCGsUme0MH6ppVteZL3jhmB+B8j4lRCh05NH8CgREk9Wz17I1m5HI7M5YPwnSajo+kQx\n rXXgtkyYUpeXNqVDbLz+AmMDyINk6TDatWhaC2kZlKXFZPGTCut00AnyDhqlkyno69VKyaaedZV\n tIWXr6tc7YTpIb4wQkatKSz+vJil8Z+9xQaakUzviFFdy3uI2dwJY50tMqK+09eLeKzaPJaT/sZ\n tQ8Wi7eH8Gr7L7PMuEAmGWTM2nFn467unq29gsGg8TPr2lYo2Pk6/RXMUXK4sKJcQaQUKz1AzM",
        "X-Received": "by 2002:a05:600c:609a:b0:485:3e00:944a with SMTP id\n 5b1f17b1804b1-488d68ae78amr59095475e9.9.1775850963612;\n Fri, 10 Apr 2026 12:56:03 -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>, Paolo Bonzini <pbonzini@redhat.com>,\n Zhao Liu <zhao1.liu@intel.com>",
        "Subject": "[PATCH v2 22/27] monitor: Do not check TARGET_I386 to build\n target/i386/ commands",
        "Date": "Fri, 10 Apr 2026 21:53:16 +0200",
        "Message-ID": "<20260410195323.17937-23-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::32d;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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": "These commands are filtered at build-time for i386/x86_64 binaries.\nBy using the recently introduced HMPCommand::arch_bitmask flag\nwe can filter them at runtime, making it possible to compile\nhmp-commands[-info].hx files once.\n\nSince these methods are used inconditionally within target/i386/,\ndefine them in the same stub file.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n MAINTAINERS                  |  1 +\n stubs/hmp-cmds-target-i386.c | 13 +++++++++++++\n hmp-commands-info.hx         |  4 +---\n hmp-commands.hx              |  5 +----\n stubs/meson.build            |  1 +\n 5 files changed, 17 insertions(+), 7 deletions(-)\n create mode 100644 stubs/hmp-cmds-target-i386.c",
    "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex e53158143a8..458951bc051 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -148,6 +148,7 @@ F: configs/targets/i386-softmmu.mak\n F: configs/targets/x86_64-softmmu.mak\n F: docs/system/i386/\n F: docs/system/target-i386*\n+F: stubs/hmp-cmds-target-i386.c\n F: target/i386/*.[ch]\n F: target/i386/Kconfig\n F: target/i386/meson.build\ndiff --git a/stubs/hmp-cmds-target-i386.c b/stubs/hmp-cmds-target-i386.c\nnew file mode 100644\nindex 00000000000..43a167056d5\n--- /dev/null\n+++ b/stubs/hmp-cmds-target-i386.c\n@@ -0,0 +1,13 @@\n+/*\n+ * Human Monitor x86 stubs\n+ *\n+ * Copyright (c) Linaro\n+ *\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n+ */\n+\n+#include \"qemu/osdep.h\"\n+#include \"monitor/hmp.h\"\n+\n+HMP_STUB(info_local_apic)\n+HMP_STUB(mce)\ndiff --git a/hmp-commands-info.hx b/hmp-commands-info.hx\nindex 28dec25642d..b575e4ac993 100644\n--- a/hmp-commands-info.hx\n+++ b/hmp-commands-info.hx\n@@ -113,16 +113,14 @@ SRST\n     Show the cpu registers.\n ERST\n \n-#if defined(TARGET_I386)\n     {\n         .name       = \"lapic\",\n         .args_type  = \"apic-id:i?\",\n         .params     = \"[apic-id]\",\n         .help       = \"show local apic state (apic-id: local apic to read, default is which of current CPU)\",\n-\n         .cmd        = hmp_info_local_apic,\n+        .arch_bitmask = QEMU_ARCH_I386,\n     },\n-#endif\n \n SRST\n   ``info lapic``\ndiff --git a/hmp-commands.hx b/hmp-commands.hx\nindex ff65b39b454..cfd53bdc744 100644\n--- a/hmp-commands.hx\n+++ b/hmp-commands.hx\n@@ -1488,18 +1488,15 @@ SRST\n   Stop the QEMU embedded NBD server.\n ERST\n \n-\n-#if defined(TARGET_I386)\n-\n     {\n         .name       = \"mce\",\n         .args_type  = \"broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l\",\n         .params     = \"[-b] cpu bank status mcgstatus addr misc\",\n         .help       = \"inject a MCE on the given CPU [and broadcast to other CPUs with -b option]\",\n         .cmd        = hmp_mce,\n+        .arch_bitmask = QEMU_ARCH_I386,\n     },\n \n-#endif\n SRST\n ``mce`` *cpu* *bank* *status* *mcgstatus* *addr* *misc*\n   Inject an MCE on the given CPU (x86 only).\ndiff --git a/stubs/meson.build b/stubs/meson.build\nindex d4a6bc0dde4..dc289e3a482 100644\n--- a/stubs/meson.build\n+++ b/stubs/meson.build\n@@ -85,6 +85,7 @@ if have_system\n   stub_ss.add(files('qmp-cpu-s390x.c'))\n   stub_ss.add(files('qmp-cpu-s390x-kvm.c'))\n   stub_ss.add(files('hmp-cmds-hw-s390x.c'))\n+  stub_ss.add(files('hmp-cmds-target-i386.c'))\n endif\n \n if have_system or have_user\n",
    "prefixes": [
        "v2",
        "22/27"
    ]
}