get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2225621,
    "url": "http://patchwork.ozlabs.org/api/patches/2225621/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260421093715.2995067-6-frank.chang@sifive.com/",
    "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": "<20260421093715.2995067-6-frank.chang@sifive.com>",
    "list_archive_url": null,
    "date": "2026-04-21T09:37:14",
    "name": "[v4,5/6] target/riscv: Rename riscv_pm_get_virt_pmm() to riscv_pm_get_vm_ldst_pmm()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a429ec511b104d93a4ce5ae13a76989f5a2dd82a",
    "submitter": {
        "id": 79604,
        "url": "http://patchwork.ozlabs.org/api/people/79604/?format=api",
        "name": "Frank Chang",
        "email": "frank.chang@sifive.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260421093715.2995067-6-frank.chang@sifive.com/mbox/",
    "series": [
        {
            "id": 500769,
            "url": "http://patchwork.ozlabs.org/api/series/500769/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500769",
            "date": "2026-04-21T09:37:09",
            "name": "Fix Zjpm implementation",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/500769/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2225621/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2225621/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=sifive.com header.i=@sifive.com header.a=rsa-sha256\n header.s=google header.b=enyY/qiK;\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 4g0HNp1Xwqz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 19:38:50 +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 1wF7Y6-0000AJ-M8; Tue, 21 Apr 2026 05:37:42 -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 <frank.chang@sifive.com>)\n id 1wF7Y2-00007w-2x\n for qemu-devel@nongnu.org; Tue, 21 Apr 2026 05:37:39 -0400",
            "from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <frank.chang@sifive.com>)\n id 1wF7Y0-0007si-HS\n for qemu-devel@nongnu.org; Tue, 21 Apr 2026 05:37:37 -0400",
            "by mail-pg1-x52a.google.com with SMTP id\n 41be03b00d2f7-c70fb6aa323so1357214a12.3\n for <qemu-devel@nongnu.org>; Tue, 21 Apr 2026 02:37:36 -0700 (PDT)",
            "from hsinchu16.internal.sifive.com ([210.176.154.34])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82f8e981be6sm15904589b3a.9.2026.04.21.02.37.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 21 Apr 2026 02:37:34 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=sifive.com; s=google; t=1776764255; x=1777369055; 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=eIeQ72MINFLwiJyja9lYXXTVaJXOtPeuJ5tBq73U/30=;\n b=enyY/qiKAPWFvjtMAKvTX4gAnVBP4oBykdS1lwKvcZ1IfkE9vIpxcyQOAMNVs9RMPA\n z0VrXYPHSSIIPDJrXDCLryqWUWK6v6Ethmp4tgId5PUyHFcYZ3YSG74BVsUkF3BWq3HD\n sxtA0a9J2e18YupsodB1qYCRv/ydbvDan7GVGmYPpQDwUg8yprHVZW2lKTJD0HDyJVd8\n /WiOH3LySsUocSe5yBJsQKqAVDRLPWnURTdUfeDrwsoAEospzWPLKRQCMIN3yFMRHC6N\n sUZsOitsrGdSd8b6CgouEebnRMq0IkE5BLxOkG/CEDnYyfbxIHFDpK8jJG46sWM390ND\n Bsog==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776764255; x=1777369055;\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=eIeQ72MINFLwi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5lOy8pvouGZnFvXz8nWk430aA5ozaEXoj0Z0kVby3u1t3NuEjdoiRy\n kcgTcF1Nm5LNW5mHjMva6qleETkusxk5ImuFOB9dxDIhbMI8hf2QsoWXXKkdqM",
        "X-Received": "by 2002:a05:6a20:394c:b0:39c:4af6:4309 with SMTP id\n adf61e73a8af0-3a08d748b55mr18530051637.12.1776764254611;\n Tue, 21 Apr 2026 02:37:34 -0700 (PDT)",
        "From": "frank.chang@sifive.com",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Palmer Dabbelt <palmer@dabbelt.com>,\n Alistair Francis <alistair.francis@wdc.com>,\n 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>,\n qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs),\n Frank Chang <frank.chang@sifive.com>,\n Daniel Henrique Barboza <dbarboza@ventanamicro.com>",
        "Subject": "[PATCH v4 5/6] target/riscv: Rename riscv_pm_get_virt_pmm() to\n riscv_pm_get_vm_ldst_pmm()",
        "Date": "Tue, 21 Apr 2026 17:37:14 +0800",
        "Message-ID": "<20260421093715.2995067-6-frank.chang@sifive.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260421093715.2995067-1-frank.chang@sifive.com>",
        "References": "<20260421093715.2995067-1-frank.chang@sifive.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::52a;\n envelope-from=frank.chang@sifive.com; helo=mail-pg1-x52a.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": "From: Frank Chang <frank.chang@sifive.com>\n\nRename riscv_pm_get_virt_pmm() to riscv_pm_get_vm_ldst_pmm() to better\nreflect its actual usage. This function is used when checking the PMM\nfield for virtual-machine load/store instructions (HLV.* and HSV.*),\nrather than for VS/VU modes.\n\nSigned-off-by: Frank Chang <frank.chang@sifive.com>\nReviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>\n---\n target/riscv/cpu.h        | 2 +-\n target/riscv/cpu_helper.c | 2 +-\n target/riscv/internals.h  | 2 +-\n 3 files changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h\nindex 672f0dab0fb..138183e017c 100644\n--- a/target/riscv/cpu.h\n+++ b/target/riscv/cpu.h\n@@ -890,7 +890,7 @@ bool riscv_cpu_is_32bit(RISCVCPU *cpu);\n \n bool riscv_cpu_virt_mem_enabled(CPURISCVState *env);\n RISCVPmPmm riscv_pm_get_pmm(CPURISCVState *env);\n-RISCVPmPmm riscv_pm_get_virt_pmm(CPURISCVState *env);\n+RISCVPmPmm riscv_pm_get_vm_ldst_pmm(CPURISCVState *env);\n uint32_t riscv_pm_get_pmlen(RISCVPmPmm pmm);\n \n RISCVException riscv_csrr(CPURISCVState *env, int csrno,\ndiff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c\nindex 2b3fea81d50..ef1ff7cb0bd 100644\n--- a/target/riscv/cpu_helper.c\n+++ b/target/riscv/cpu_helper.c\n@@ -214,7 +214,7 @@ RISCVPmPmm riscv_pm_get_pmm(CPURISCVState *env)\n #endif\n }\n \n-RISCVPmPmm riscv_pm_get_virt_pmm(CPURISCVState *env)\n+RISCVPmPmm riscv_pm_get_vm_ldst_pmm(CPURISCVState *env)\n {\n #ifndef CONFIG_USER_ONLY\n     int priv_mode;\ndiff --git a/target/riscv/internals.h b/target/riscv/internals.h\nindex 43b77d30f27..82d24f433dc 100644\n--- a/target/riscv/internals.h\n+++ b/target/riscv/internals.h\n@@ -203,7 +203,7 @@ static inline target_ulong adjust_addr_body(CPURISCVState *env,\n \n     /* get pmm field depending on whether addr is */\n     if (is_virt_addr) {\n-        pmm = riscv_pm_get_virt_pmm(env);\n+        pmm = riscv_pm_get_vm_ldst_pmm(env);\n     } else {\n         pmm = riscv_pm_get_pmm(env);\n     }\n",
    "prefixes": [
        "v4",
        "5/6"
    ]
}