get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2222139,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222139/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260410195323.17937-6-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-6-philmd@linaro.org>",
    "date": "2026-04-10T19:52:59",
    "name": "[v2,05/27] monitor: Forward-declare the MonitorDef type",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "24d79712cfaf0e8dcd321c7d149625bcb04f6175",
    "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-6-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/2222139/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222139/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=WwdiUehh;\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 4fsnZR1PtXz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 05:54:39 +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 1wBHve-0000O3-85; Fri, 10 Apr 2026 15:54:10 -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 1wBHvc-0000Lf-4a\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:54:08 -0400",
            "from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c])\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 1wBHvY-0001K0-An\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:54:06 -0400",
            "by mail-wr1-x42c.google.com with SMTP id\n ffacd0b85a97d-43ba1f3fa7eso2457090f8f.2\n for <qemu-ppc@nongnu.org>; Fri, 10 Apr 2026 12:54:03 -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-43d63e5d85fsm8599729f8f.36.2026.04.10.12.54.01\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 10 Apr 2026 12:54:01 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775850843; x=1776455643; 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=MpWqUPwhfS1fPWpJ/GJCnH26mtliLzp4q5CtM+NZCuc=;\n b=WwdiUehhqkEgYKiB6GX9PB40bOmomgckc5Ox79zUr83e3rK06b8MPRIer9Wq3CJFZs\n vPOTC4xQaTKaj0UZsueukJPb/ZJdfvUflvE0IixKcLSckN6fiwH1RESJVj7xggkCBi8a\n 8mNUntJ5ZC/gFGiKHoswDN2STq0utP8c7RsFpM0DiU1esOBdNAfM53wYdVCkW8ktnPQq\n 6UMo/LBTBouc4TklQjW5m4vEbcAK29f7ftqNSYHPi91chJ3+3LJ3WBs+2yHEHXhtik+V\n gmuFFSfh6o32LWO9BAfunxNtWuEdK7OkwQkaoygE3Y8eLNsu6zGw8cKKOm8U58m2DUEO\n cL7A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775850843; x=1776455643;\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=MpWqUPwhfS1fPWpJ/GJCnH26mtliLzp4q5CtM+NZCuc=;\n b=Og8IWf3ctJzoPiQs6VmFeccNTy+PBR0oRFvXGjx9o+PqDPE5bY0f+6XClINNYd0iB6\n cjOQpIvH77QiQJbd4FDfnUP8zvyPLsICeRzewlw9gVv5pSPDz+Nh1CgWNh0kRRGEB9GD\n g+cD6ons6XfFISPTQkMINsyNkoTwIPtLBCPnoVZivqWSoUY7MkfZlNnYvctojcHfUY3Q\n NFeo6V8diNqUhFnh/spJhvhiJ7mFiA9grSE5oEVyhMAJlBPHnuNZTHOSSIQHW9cwwAKe\n 1PiOI1h1gRYzbV6/lqiXpXOWnGj5Ko2vu/w+241+hzgFZ22t45X85GvCjJOYYL56BBuh\n tyGg==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCUOuCXDQE08MM0CsCFInKIlq3bgsOfT/V8oO/sqKhb8Mpp3YjAk+eAwdK3aHuIwIvyBkjHXfh/E6A==@nongnu.org",
        "X-Gm-Message-State": "AOJu0YxnEBNYLRmf7Obw3PHtkwGiaQrE7GCCAJVXMgkDGVYhM/XkDwZd\n B8FqNAhZ+GCxSpjdKlXBb5E5+r9f/rbOH9G2X8uRR3zz438kuyYxhXSd+Dv/yUOFZbw=",
        "X-Gm-Gg": "AeBDietLtuZWd/rX3LtfJXqFkJytn+b+iVwSdF508rXjs8w9hYyVyvgo7g7BuhJs7Vq\n +fvFLLiR5DMMycKjqkEb+jWU3oWM+iqAlogRDqKXOhbM3ZSXrTvyoj8dxJpv2h7pdV48nCvVOui\n 064vMwpYSSp2pd9dWKBplJXVcQG7+4/tNWLF3JxNWn07vuyGSHDJFj8L/ck7fAZIWG3gjI49LhA\n DXcUMk6p48sDaMcASZVFKm51FvmRHBvYlQ50q1fR0meT9Yvyoyde75bKb6W+yP5jXJRUTNAOURG\n 4hLnadegkT5lUdiWKIVxIxGX+pxySORhxWg8DASHZFrrVsO0wXF+4V6FEOFUn6bVUTRuVhGww0G\n SPoDeTdBj8N7brwQ/xb6WX041BYVuUyPC/DAKSU9Zg1qFZHS0pixFkNBe9DAobmzvWX4MYknv7E\n 5FJf9cfx+IVi9zHRXxN31fkeryBKA3wvPQyipsB3trJFUpi4/NTtwhNVC3keK/5+M4eheRXwuV",
        "X-Received": "by 2002:a05:6000:2886:b0:43b:7ff5:fdf7 with SMTP id\n ffacd0b85a97d-43d642c8664mr6778189f8f.29.1775850842547;\n Fri, 10 Apr 2026 12:54:02 -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>",
        "Subject": "[PATCH v2 05/27] monitor: Forward-declare the MonitorDef type",
        "Date": "Fri, 10 Apr 2026 21:52:59 +0200",
        "Message-ID": "<20260410195323.17937-6-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::42c;\n envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.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=ham 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": "Rather than having core header forced to include \"monitor/hmp.h\"\nto get the MonitorDef type declaration, forward-declare it in\n\"qemu/typedefs.h\".\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n include/monitor/hmp.h   | 6 +++---\n include/qemu/typedefs.h | 1 +\n 2 files changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h\nindex f17a50a3fed..516089eb5c6 100644\n--- a/include/monitor/hmp.h\n+++ b/include/monitor/hmp.h\n@@ -17,11 +17,11 @@\n #include \"qemu/readline.h\"\n #include \"qapi/qapi-types-common.h\"\n \n-typedef struct MonitorDef {\n+struct MonitorDef {\n     const char *name;\n     int offset;\n-    int64_t (*get_value)(Monitor *mon, const struct MonitorDef *md, int offset);\n-} MonitorDef;\n+    int64_t (*get_value)(Monitor *mon, const MonitorDef *md, int offset);\n+};\n \n const MonitorDef *target_monitor_defs(void);\n int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);\ndiff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h\nindex 416a8c9acea..07f2ae7c9f1 100644\n--- a/include/qemu/typedefs.h\n+++ b/include/qemu/typedefs.h\n@@ -72,6 +72,7 @@ typedef struct MemoryRegionSection MemoryRegionSection;\n typedef struct MigrationIncomingState MigrationIncomingState;\n typedef struct MigrationState MigrationState;\n typedef struct Monitor Monitor;\n+typedef struct MonitorDef MonitorDef;\n typedef struct MSIMessage MSIMessage;\n typedef struct NetClientState NetClientState;\n typedef struct NetFilterState NetFilterState;\n",
    "prefixes": [
        "v2",
        "05/27"
    ]
}