get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197177,
    "url": "http://patchwork.ozlabs.org/api/patches/2197177/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260217095106.598486-2-richard.henderson@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": "<20260217095106.598486-2-richard.henderson@linaro.org>",
    "list_archive_url": null,
    "date": "2026-02-17T09:51:00",
    "name": "[v2,1/7] page-vary: Expose TARGET_PAGE_BITS_MIN definition",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ec31caa74fb600fb8ae208ee7703378aec6b9cfd",
    "submitter": {
        "id": 72104,
        "url": "http://patchwork.ozlabs.org/api/people/72104/?format=api",
        "name": "Richard Henderson",
        "email": "richard.henderson@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260217095106.598486-2-richard.henderson@linaro.org/mbox/",
    "series": [
        {
            "id": 492403,
            "url": "http://patchwork.ozlabs.org/api/series/492403/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=492403",
            "date": "2026-02-17T09:51:04",
            "name": "page-vary: Build once",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492403/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2197177/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197177/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=bCHz8bSg;\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 4fFZqP5g17z1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 20:59:13 +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 1vsHrA-0000Yg-FF; Tue, 17 Feb 2026 04:59:00 -0500",
            "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 <richard.henderson@linaro.org>)\n id 1vsHqw-0000Vx-MT\n for qemu-devel@nongnu.org; Tue, 17 Feb 2026 04:58:50 -0500",
            "from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>)\n id 1vsHqv-0001KY-59\n for qemu-devel@nongnu.org; Tue, 17 Feb 2026 04:58:46 -0500",
            "by mail-ot1-x331.google.com with SMTP id\n 46e09a7af769-7d4cb7e10efso3480575a34.0\n for <qemu-devel@nongnu.org>; Tue, 17 Feb 2026 01:58:44 -0800 (PST)",
            "from localhost.localdomain\n (2403-580b-742d-0-10a2-dce1-aa4a-dd32.ip6.aussiebb.net.\n [2403:580b:742d:0:10a2:dce1:aa4a:dd32])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2ad1a6fa33esm99108675ad.13.2026.02.17.01.51.12\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 17 Feb 2026 01:51:14 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1771322324; x=1771927124; 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=mKoafgl9k/P7C/ae0FhPI1YFMXXnXfGrilpKysbRFTw=;\n b=bCHz8bSgn9DRjkIo61H7+l2yvds3TCuZouqFkeuouRB1nRzEBrLxr1BOaACQGPepZC\n Lj5eL4wMZ2/wfpAPJkg1gIjBTVhyw0T8DXibIj2jkI7gnby9lGdlByWckqgTE2hKQSEb\n Lzx4Vgw+SccqTbiKe3KuUU6/MXb0LBWzCmYOJnc+pZUnKTmLffZ36WbzRf9CC4fkH5+X\n rTfObHh2inM6/nTV1agArnGtfqCzVzuT+KB8DwkLvvVHHibKNMnphzDbMHDV+s8xUVfI\n VtWTtrWTRMkC0ZVb8ZwDdqCeP+M1kikeiMuyu0hM8lBEndnAB0fPxNHYdZ2wnm+Nl+E9\n dT9Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771322324; x=1771927124;\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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lvc2cawF0KE7BngIlQmSwF3NkHzo485ZtkxncPse0/AlNbi+m\n R5UoNSkzhQcTeDwPsjXFm4XsNPRFIAvr9RugUxOk7SAwPfcJw==",
        "X-Received": "by 2002:a17:903:22ca:b0:2aa:d7fe:8603 with SMTP id\n d9443c01a7336-2ad17431b82mr99461555ad.8.1771321874944;\n Tue, 17 Feb 2026 01:51:14 -0800 (PST)",
        "From": "Richard Henderson <richard.henderson@linaro.org>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "philmd@linaro.org,\n\tPierrick Bouvier <pierrick.bouvier@linaro.org>",
        "Subject": "[PATCH v2 1/7] page-vary: Expose TARGET_PAGE_BITS_MIN definition",
        "Date": "Tue, 17 Feb 2026 19:51:00 +1000",
        "Message-ID": "<20260217095106.598486-2-richard.henderson@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260217095106.598486-1-richard.henderson@linaro.org>",
        "References": "<20260217095106.598486-1-richard.henderson@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::331;\n envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x331.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-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": "From: Philippe Mathieu-Daudé <philmd@linaro.org>\n\nWe'll use TARGET_PAGE_BITS_MIN in page-vary-common.c,\nso expose it via \"exec/page-vary.h\".\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nReviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>\nSigned-off-by: Richard Henderson <richard.henderson@linaro.org>\nMessage-ID: <20260213182713.44924-3-philmd@linaro.org>\n---\n include/exec/page-vary.h | 14 ++++++++++++++\n page-vary-target.c       | 15 ---------------\n 2 files changed, 14 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/include/exec/page-vary.h b/include/exec/page-vary.h\nindex 101c25911c..3c77689ca5 100644\n--- a/include/exec/page-vary.h\n+++ b/include/exec/page-vary.h\n@@ -20,6 +20,20 @@\n #ifndef EXEC_PAGE_VARY_H\n #define EXEC_PAGE_VARY_H\n \n+/*\n+ * For system mode, the minimum comes from the number of bits\n+ * required for maximum alignment (6) and the number of bits\n+ * required for TLB_FLAGS_MASK (3).\n+ *\n+ * For user mode, TARGET_PAGE_BITS_VARY is a hack to allow the target\n+ * page size to match the host page size.  Mostly, this reduces the\n+ * ordinary target page size to run on a host with 4KiB pages (i.e. x86).\n+ * There is no true minimum required by the implementation, but keep the\n+ * same minimum as for system mode for sanity.\n+ * See linux-user/mmap.c, mmap_h_lt_g and mmap_h_gt_g.\n+ */\n+#define TARGET_PAGE_BITS_MIN 9\n+\n typedef struct {\n     bool decided;\n     int bits;\ndiff --git a/page-vary-target.c b/page-vary-target.c\nindex 49a32b4fe5..ab92da4539 100644\n--- a/page-vary-target.c\n+++ b/page-vary-target.c\n@@ -23,21 +23,6 @@\n #include \"exec/page-vary.h\"\n #include \"exec/target_page.h\"\n \n-\n-/*\n- * For system mode, the minimum comes from the number of bits\n- * required for maximum alignment (6) and the number of bits\n- * required for TLB_FLAGS_MASK (3).\n- *\n- * For user mode, TARGET_PAGE_BITS_VARY is a hack to allow the target\n- * page size to match the host page size.  Mostly, this reduces the\n- * ordinary target page size to run on a host with 4KiB pages (i.e. x86).\n- * There is no true minimum required by the implementation, but keep the\n- * same minimum as for system mode for sanity.\n- * See linux-user/mmap.c, mmap_h_lt_g and mmap_h_gt_g.\n- */\n-#define TARGET_PAGE_BITS_MIN 9\n-\n #ifndef TARGET_PAGE_BITS_VARY\n QEMU_BUILD_BUG_ON(TARGET_PAGE_BITS < TARGET_PAGE_BITS_MIN);\n #endif\n",
    "prefixes": [
        "v2",
        "1/7"
    ]
}