get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2222158,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222158/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260410195323.17937-10-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-10-philmd@linaro.org>",
    "date": "2026-04-10T19:53:03",
    "name": "[v2,09/27] target/sparc: Replace target_monitor_defs -> SysemuCPUOps::monitor_defs",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "233a83f8e92067cf71d073aca2304f3123f9886a",
    "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-10-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/2222158/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222158/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=kDnSkJhU;\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 4fsnbn3D9Dz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 05:55:49 +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 1wBHw4-0000wq-AH; Fri, 10 Apr 2026 15:54:36 -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 1wBHw2-0000u2-Jo\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:54:34 -0400",
            "from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f])\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 1wBHw1-0001WV-1L\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:54:34 -0400",
            "by mail-wr1-x42f.google.com with SMTP id\n ffacd0b85a97d-43d17bb1c65so1645343f8f.0\n for <qemu-ppc@nongnu.org>; Fri, 10 Apr 2026 12:54:32 -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 ffacd0b85a97d-43d63e5d85fsm8603605f8f.36.2026.04.10.12.54.30\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 10 Apr 2026 12:54:30 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775850871; x=1776455671; 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=dQcummkxUOYYVBuFGYQ78NMsb9ycB7/JcbKGuZBFsZk=;\n b=kDnSkJhUbdGGH0YeXAdmyMRvkxlfwU5iDk+NAEZfHBiZ7TqiIVa5ptkvVMe9gunV7h\n ggQQ1G/McIXUZDiK7cMsysga0OeY3LTiofa654dRZpkL0/ruzDfQiGRH/guoeXOdZDo4\n SHwycANaiWd8vHyMhVQc2FeJgLwmjC/RgMWwL5o8qUcOjBt3oJWcn1qJ7X8/YWPueBeS\n HoPgBbg8BXYFApTOaqi11KrrdcKIck3OvxpT7jmkBoPX1mgJ2Z2UcU3PQ5kTxVmYXNKN\n NUrGFMBfUPzLbn3uCc1R1aeUPmXPNuNJYpMy5/PBUBZWwkcT/IhmY+BdP4+xmcmaqHtp\n oexQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775850871; x=1776455671;\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=dQcummkxUOYYVBuFGYQ78NMsb9ycB7/JcbKGuZBFsZk=;\n b=cge3c2OSY6BCK755CrvxSvEysRG3HOsp/Fk3woP2UN+lKjW4GXRS0eXphzqY8V38fu\n xqqX/Ot52+bK5uguwFvr3xNh/za1sZbLsza+HHwt2r30+EBi/uo2AmzDbSNp7tMhI8YK\n DliJB4NeeaeKqCDUSAduODEhTMboyDO++IiE3oFyOwNpL+9bVxHn1BCJiCbogLBDaYns\n 62+Gh1h3JVPoCTdexZ3eYvek9wTYADs7Pc7LJ74S3HMebv3FfXPGtij95BJq/gtO9u10\n CrpSDFPPmE4AoqITynNAeh7kQ1N0c9mAA8Ry7vfWmY5UoxhSkkrC2J9RXZ1c9m+4XPya\n NV7w==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCXViCkj6ABPnXdlDyYe32+03rzdI5FDEv1pQhH4A/OVnd0OGz6VsW3r9fYqihusRNKqTHdVmXkzmw==@nongnu.org",
        "X-Gm-Message-State": "AOJu0Yx/gcsRVWKIE46521F+E5BvjGSw7OyhrnVvjm4BYIgVll96ODm2\n 8/HexLuwulNOkbC0YJKI7rLbO6BeBArFpO4u/i2Fd94whSrYkhAyQdGaTqvFoqcEZic=",
        "X-Gm-Gg": "AeBDieuIF9hr2W24vPp4jGfKoYNFImE1YHSRpuSGeKghZJqh5Jdp9sXJxiYagMw63dP\n eAn4EiZ5+It2iT7SOk4bWYaccbw7SXVkJxUCbH0+D/IT1paMVhe4Pm3O5iwi8ZrXOQPaDmhbKmP\n In9XdXFx1VqqooJZuk/8yBwOb5xq+WSaSHYN2F020Wepd+FEn/QfgthPp0uMMKYnL5vkZg1woHE\n lispEEU1x6BTTVA96j2rJQiT73QQsKiKCsfGmiCznL8KdyKuocGR95KpmEtbxwtaNy3DMR7raNS\n /mu3g6aWjPf2zR3cFWipad57YBizYj5STR4fI1D4X60tKHh8/sZREgfxc14L++y3z2qG9l2oEV1\n 5Nm6YUDWj08K2pQtZ64HFebZ+2GznqN4+RYQdYkJBtIO3NXxeCr0RbgXoswJXuPZyaOLkmWkSIb\n Z6/2hBbUb6cEOHCT20k1dH6GMjQbvYQslhEqpCOr8cKpoCcYXrscosP8lJnJ9Z8rX+syvfKbn8",
        "X-Received": "by 2002:a05:6000:1a8f:b0:43b:a21e:9c19 with SMTP id\n ffacd0b85a97d-43d642c080amr6854206f8f.38.1775850871272;\n Fri, 10 Apr 2026 12:54:31 -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 Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,\n Artyom Tarasenko <atar4qemu@gmail.com>",
        "Subject": "[PATCH v2 09/27] target/sparc: Replace target_monitor_defs ->\n SysemuCPUOps::monitor_defs",
        "Date": "Fri, 10 Apr 2026 21:53:03 +0200",
        "Message-ID": "<20260410195323.17937-10-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::42f;\n envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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": "Restrict sparc64_monitor_defs[] to cpu.c, register it\nas SysemuCPUOps::monitor_defs hook (taking care to not\nregister it on 32-bit SPARC target), allowing to remove\nthe target_monitor_defs() method.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n target/sparc/cpu.c     | 19 +++++++++++++++++++\n target/sparc/monitor.c | 18 ------------------\n 2 files changed, 19 insertions(+), 18 deletions(-)",
    "diff": "diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c\nindex 1493336e7a2..9c5175aca34 100644\n--- a/target/sparc/cpu.c\n+++ b/target/sparc/cpu.c\n@@ -993,12 +993,31 @@ static const Property sparc_cpu_properties[] = {\n };\n \n #ifndef CONFIG_USER_ONLY\n+\n+#ifdef TARGET_SPARC64\n+#include \"monitor/hmp.h\"\n+\n+static const MonitorDef sparc64_monitor_defs[] = {\n+    { \"asi\", offsetof(CPUSPARCState, asi) },\n+    { \"pstate\", offsetof(CPUSPARCState, pstate) },\n+    { \"cansave\", offsetof(CPUSPARCState, cansave) },\n+    { \"canrestore\", offsetof(CPUSPARCState, canrestore) },\n+    { \"otherwin\", offsetof(CPUSPARCState, otherwin) },\n+    { \"wstate\", offsetof(CPUSPARCState, wstate) },\n+    { \"cleanwin\", offsetof(CPUSPARCState, cleanwin) },\n+    { NULL },\n+};\n+#endif\n+\n #include \"hw/core/sysemu-cpu-ops.h\"\n \n static const struct SysemuCPUOps sparc_sysemu_ops = {\n     .has_work = sparc_cpu_has_work,\n     .get_phys_page_debug = sparc_cpu_get_phys_page_debug,\n     .legacy_vmsd = &vmstate_sparc_cpu,\n+#if defined(TARGET_SPARC64)\n+    .monitor_defs = sparc64_monitor_defs,\n+#endif\n };\n #endif\n \ndiff --git a/target/sparc/monitor.c b/target/sparc/monitor.c\nindex 99abddbf1e0..36f3d8d58e9 100644\n--- a/target/sparc/monitor.c\n+++ b/target/sparc/monitor.c\n@@ -37,21 +37,3 @@ void hmp_info_tlb(Monitor *mon, const QDict *qdict)\n     }\n     dump_mmu(env1);\n }\n-\n-const MonitorDef monitor_defs[] = {\n-#ifdef TARGET_SPARC64\n-    { \"asi\", offsetof(CPUSPARCState, asi) },\n-    { \"pstate\", offsetof(CPUSPARCState, pstate) },\n-    { \"cansave\", offsetof(CPUSPARCState, cansave) },\n-    { \"canrestore\", offsetof(CPUSPARCState, canrestore) },\n-    { \"otherwin\", offsetof(CPUSPARCState, otherwin) },\n-    { \"wstate\", offsetof(CPUSPARCState, wstate) },\n-    { \"cleanwin\", offsetof(CPUSPARCState, cleanwin) },\n-#endif\n-    { NULL },\n-};\n-\n-const MonitorDef *target_monitor_defs(void)\n-{\n-    return monitor_defs;\n-}\n",
    "prefixes": [
        "v2",
        "09/27"
    ]
}