get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216113,
    "url": "http://patchwork.ozlabs.org/api/patches/2216113/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260325211728.89204-3-philmd@linaro.org/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260325211728.89204-3-philmd@linaro.org>",
    "list_archive_url": null,
    "date": "2026-03-25T21:17:20",
    "name": "[PATCH-for-11.1,02/10] target/loongarch: Avoid target-specific migration headers in machine.c",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d5818642d765d9a409feca9ee2e9d9c23afe48f3",
    "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-devel/patch/20260325211728.89204-3-philmd@linaro.org/mbox/",
    "series": [
        {
            "id": 497512,
            "url": "http://patchwork.ozlabs.org/api/series/497512/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497512",
            "date": "2026-03-25T21:17:19",
            "name": "migration: Reduce uses of target-specific macros",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497512/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216113/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216113/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-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=AZhlndkT;\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-devel-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 4fh0Bq5zxbz1yGL\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 08:18:43 +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-devel-bounces@nongnu.org>)\n\tid 1w5Vbr-0000uX-VO; Wed, 25 Mar 2026 17:17:51 -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 1w5Vbp-0000s1-ES\n for qemu-devel@nongnu.org; Wed, 25 Mar 2026 17:17:49 -0400",
            "from mail-wm1-x333.google.com ([2a00:1450:4864:20::333])\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 1w5Vbm-00015Y-Vm\n for qemu-devel@nongnu.org; Wed, 25 Mar 2026 17:17:49 -0400",
            "by mail-wm1-x333.google.com with SMTP id\n 5b1f17b1804b1-4838c15e3cbso2512425e9.3\n for <qemu-devel@nongnu.org>; Wed, 25 Mar 2026 14:17:46 -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-4871fb3cb42sm7864125e9.9.2026.03.25.14.17.43\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Wed, 25 Mar 2026 14:17:44 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1774473465; x=1775078265; 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=kfJwMXjluZgiTP+augjPX/N9RW5TR5jPeS41ZUSD62g=;\n b=AZhlndkTp5ewLI9TiBhe7U4Vf+ftBZbvbqCIauZaad8AgHbLyEEXo45EhDQcigsHvg\n g5CVs2DaLk7i6QJ5oseAgWY20sltBSUdQFYfK9A07+9yOrmEiKuUR4MBOfBDstNNIbpE\n vHB8xW7VqKxFCj0ms+Bf/tmXByucjYqnojjqEYI52aEdAnfriarjO9WQ1YmKy2inpjG1\n 3TDG+1GKN8B8dwMCQh0IpBP5/wN8YZbBmS1iL8wqZqAgSIjOJaN7pyGTQAUZUTuq7jZo\n FE7Ols75m0sF1k4oXbE08O3BGakPDRW3w0VRFhB3cCrJKvpPN2yhlrKKp1sauzMRMBC/\n CTDQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774473465; x=1775078265;\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=kfJwMXjluZgiTP+augjPX/N9RW5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GoLw",
        "X-Received": "by 2002:a05:600c:4692:b0:485:4eaf:eb54 with SMTP id\n 5b1f17b1804b1-48716039b83mr72870265e9.20.1774473465043;\n Wed, 25 Mar 2026 14:17:45 -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 Song Gao <gaosong@loongson.cn>",
        "Subject": "[PATCH-for-11.1 02/10] target/loongarch: Avoid target-specific\n migration headers in machine.c",
        "Date": "Wed, 25 Mar 2026 22:17:20 +0100",
        "Message-ID": "<20260325211728.89204-3-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::333;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "machine.c doesn't use any target-specific macro defined by\nthe \"migration/cpu.h\" header. Use the minimum header required:\n\"migration/qemu-file-types.h\" which is not target-specific.\nThis allows to build this file as common object.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n target/loongarch/machine.c   | 2 +-\n target/loongarch/meson.build | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/target/loongarch/machine.c b/target/loongarch/machine.c\nindex 28b9079d04e..4db53fec267 100644\n--- a/target/loongarch/machine.c\n+++ b/target/loongarch/machine.c\n@@ -7,7 +7,7 @@\n \n #include \"qemu/osdep.h\"\n #include \"cpu.h\"\n-#include \"migration/cpu.h\"\n+#include \"migration/vmstate.h\"\n #include \"system/tcg.h\"\n #include \"vec.h\"\n \ndiff --git a/target/loongarch/meson.build b/target/loongarch/meson.build\nindex 2ae96d68695..c5a2953b29c 100644\n--- a/target/loongarch/meson.build\n+++ b/target/loongarch/meson.build\n@@ -10,6 +10,7 @@ loongarch_user_ss.add(files('gdbstub.c'))\n \n loongarch_common_system_ss = ss.source_set()\n loongarch_common_system_ss.add(files('gdbstub.c'))\n+loongarch_common_system_ss.add(files('machine.c'))\n \n loongarch_system_ss = ss.source_set()\n loongarch_system_ss.add(files(\n@@ -17,7 +18,6 @@ loongarch_system_ss.add(files(\n   'cpu_helper.c',\n   'csr.c',\n   'loongarch-qmp-cmds.c',\n-  'machine.c',\n ))\n \n common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])\n",
    "prefixes": [
        "PATCH-for-11.1",
        "02/10"
    ]
}