get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224634,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2224634/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260417173105.1648172-3-peter.maydell@linaro.org/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260417173105.1648172-3-peter.maydell@linaro.org>",
    "list_archive_url": null,
    "date": "2026-04-17T17:30:50",
    "name": "[02/17] target/alpha: Make get_phys_page_debug handle non-page-aligned addrs",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "5bb1044f9fb29fbd5cdb1fbc02a5d9e7faf47dc3",
    "submitter": {
        "id": 5111,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/5111/?format=api",
        "name": "Peter Maydell",
        "email": "peter.maydell@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260417173105.1648172-3-peter.maydell@linaro.org/mbox/",
    "series": [
        {
            "id": 500380,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/500380/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500380",
            "date": "2026-04-17T17:30:51",
            "name": "Handle sub-page granularity in cpu_memory_rw_debug()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500380/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224634/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224634/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=PhV+oxsS;\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=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.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 4fy27M1Tjyz1yHp\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 18 Apr 2026 03:34:23 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wDn2v-0007Ao-Jo; Fri, 17 Apr 2026 13:32:01 -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 <peter.maydell@linaro.org>)\n id 1wDn2G-0006jK-8Y\n for qemu-devel@nongnu.org; Fri, 17 Apr 2026 13:31:30 -0400",
            "from mail-wr1-x432.google.com ([2a00:1450:4864:20::432])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wDn2B-000218-9d\n for qemu-devel@nongnu.org; Fri, 17 Apr 2026 13:31:17 -0400",
            "by mail-wr1-x432.google.com with SMTP id\n ffacd0b85a97d-43fe608cb92so559956f8f.2\n for <qemu-devel@nongnu.org>; Fri, 17 Apr 2026 10:31:12 -0700 (PDT)",
            "from lanath.. (wildly.archaic.org.uk. [81.2.115.145])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43fe4e4ffa8sm5819650f8f.35.2026.04.17.10.31.09\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 17 Apr 2026 10:31:10 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776447071; x=1777051871; 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=pqdYb2Ac9eVKgwfgrSKBf0XMUR0VWrhwweydT8/TgLI=;\n b=PhV+oxsSB40edeFRP8VQEMre+MZTy4J3iFN6Z8l/RP5J0Y1inZG73JFoQpXFExJK6t\n DFk/7s1ZBHhEWtCdTDZXn9k0hk2YsyefBKfv70QV+eodBYtvpQFX4sOwLS9kzcqCv9Up\n OKOB8PUcn5rQ+DaqRnSfV5gHLLKHBP0Dt4mW88F87Fcs6/+S3lBP4KNIf7MX4U0kSkK3\n RCwG1iKGey2u4jd6xGdNQ+pqPaqw74mW11WKyq7aOGdVpsYj6HCS5/EZn7GHQSSs7lh0\n jKUEUQW4XHqRgrtjA+WLxMEHPCIng8PtkdFU48dOzvEJL20srQkQ12TY4J8nv/HouCX8\n xSAw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776447071; x=1777051871;\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=pqdYb2Ac9eVKgwfgrSKBf0XMUR0VWrhwweydT8/TgLI=;\n b=MFN/n1w1v8+4ZsxtEEmOEt2osK7tu2lEm+caXYwdlm2XdGrKnUH0cbl0uophOJp2kq\n 9KHKIiWi7Vg24oWwCWFXdOWWe0Cq/6Y9tWPBxeh3ajoV9kXZTLhriJTQl7QdZtpqGnci\n zi3jAK97CCUhfQ6kiv3RhxlmBRtjHYtJR0igJmlCpuvX98TfgoBFA9bx84k6A5peWAn8\n Kwn8vRqKPSgydLzinONPGvBk18sBIo4vf/glxTviO2LPU0GqtdbpAeFWQtWXN06hAO5A\n PX/9fyoDBN0gVFLu6z4YK8Ue5ahqFpNscuNV1zihV7EcdapSlFswfIvHzWtaYn2NF7tG\n Xe6Q==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ969+I84bko1zzc3eqRZduyWau5gaDXY2Y808o0bzBIggFVPAyzJTMtJG+qAKpdbusPsPI5ih0flNhN@nongnu.org",
        "X-Gm-Message-State": "AOJu0YzVOHfF1XTb11zryMPKhd/9SU0NRUt1P2kT4V4BCU+sk/t+zRCp\n cdw5pDYWzpw9RYegPJYwDX5jvqXIUF0eHpf7EL77A2ZlSTuylfUHNX/R9wxu4XqXdOg=",
        "X-Gm-Gg": "AeBDieuGsTVueLtTHBJ6+GWS334tGzdLVqRfI4e1VgHI4rVGCldxZYcOPD1NX8QqKWL\n p8gvR7Tq3HerL7jCNI/hiFBrsnFMJhNISaUD8OzNEd1DShzff3U11A+HILbg2P4wyLDfWiLD9x7\n 4m36F71ZuZ7lvyV3CnvApg5cDHQpkkU7yxAnRJwHfoQ7ezwvG7238HjHtBnVxTHbyPjN+yXwkDh\n 4RB77J+lBkSxMbmbJuPagfYH3btZ8xgJeAlZNnMRYbEYvnX1cobALlm35TRfly0F6on67bERCEQ\n dGove6HkWMskVBVtPDBqHi2oJbgMW8/sEvXL6F0uMW3krFE6HHnByhUtRsjCcmYZC/2CaSFhWYF\n NryP7AWseGVKcbQ5IWjHjnBbVn1gdt1tsQsnpcKYgxzKgXL4/q+xUP5ujrdIjukrbVUuBvcbm3L\n Dv0z18n5YPF/ImHoNblGwRTGmmFRnHEQ5UwcpnmRGdIBq9XmAn3HT6uL1REWBz2GOpCJWf7KBqR\n OKqVKKyBQtd9BfhA/xLRiw4RZhB+TCetaO33u6dYQ==",
        "X-Received": "by 2002:a05:6000:2087:b0:43d:7403:4b5d with SMTP id\n ffacd0b85a97d-43fe3dc49ecmr5912425f8f.15.1776447071031;\n Fri, 17 Apr 2026 10:31:11 -0700 (PDT)",
        "From": "Peter Maydell <peter.maydell@linaro.org>",
        "To": "qemu-arm@nongnu.org,\n\tqemu-devel@nongnu.org",
        "Cc": "qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>,\n Paolo Bonzini <pbonzini@redhat.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n \"Dr. David Alan Gilbert\" <dave@treblig.org>,\n =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>,\n Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>,\n Peter Xu <peterx@redhat.com>, \"Edgar E. Iglesias\" <edgar.iglesias@gmail.com>,\n Jiaxun Yang <jiaxun.yang@flygoat.com>, Nicholas Piggin <npiggin@gmail.com>,\n Chinmay Rath <rathc@linux.ibm.com>, Glenn Miles <milesg@linux.ibm.com>,\n Palmer Dabbelt <palmer@dabbelt.com>,\n Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>,\n Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>,\n Liu Zhiwei <zhiwei_liu@linux.alibaba.com>,\n Chao Liu <chao.liu.zevorn@gmail.com>, Ilya Leoshkevich <iii@linux.ibm.com>,\n David Hildenbrand <david@kernel.org>,\n Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,\n Artyom Tarasenko <atar4qemu@gmail.com>",
        "Subject": "[PATCH 02/17] target/alpha: Make get_phys_page_debug handle\n non-page-aligned addrs",
        "Date": "Fri, 17 Apr 2026 18:30:50 +0100",
        "Message-ID": "<20260417173105.1648172-3-peter.maydell@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260417173105.1648172-1-peter.maydell@linaro.org>",
        "References": "<20260417173105.1648172-1-peter.maydell@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2a00:1450:4864:20::432;\n envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x432.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": "Currently our implementations of SysemuCPUOps::get_phys_page_debug\nand SysemuCPUOps::get_phys_page_attrs_debug are a mix of \"accepts a\nnon-page-aligned virtual address and returns the corresponding\nnon-page-aligned physical address\" and \"only returns a page-aligned\nphysical address\".  This is awkward for callsites, which in practice\nall want the physical address for an arbitrary virtual address and\nhave to work around the possibility of getting a page-aligned\naddress, and it doesn't account for protection being possibly on a\nsub-page-sized granularity.  We want to standardize on the\nimplementation having to handle non-page-aligned addresses.\n\nFor alpha, the get_physical_address() function accepts arbitrary\ninput addresses but may return an output rounded down to a page\nboundary, so in alpha_cpu_get_phys_page_debug() we OR the within-page\noffset into it before returning it.\n\nSigned-off-by: Peter Maydell <peter.maydell@linaro.org>\n---\n target/alpha/helper.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/target/alpha/helper.c b/target/alpha/helper.c\nindex 179dc2dc7a..af6d7847d5 100644\n--- a/target/alpha/helper.c\n+++ b/target/alpha/helper.c\n@@ -301,6 +301,7 @@ hwaddr alpha_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)\n     int prot, fail;\n \n     fail = get_physical_address(cpu_env(cs), addr, 0, 0, &phys, &prot);\n+    phys |= addr & ~TARGET_PAGE_MASK;\n     return (fail >= 0 ? -1 : phys);\n }\n \n",
    "prefixes": [
        "02/17"
    ]
}