get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196690,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2196690/?format=api",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.0/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": ""
    },
    "msgid": "<20260216034432.23912-2-richard.henderson@linaro.org>",
    "date": "2026-02-16T03:44:20",
    "name": "[RFC,01/13] NOTFORMERGE: Update linux-headers for arm64 kvm from SME devel branch",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e087f323f7bab5f90917c89a32f7d70d540b7c70",
    "submitter": {
        "id": 72104,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/72104/?format=api",
        "name": "Richard Henderson",
        "email": "richard.henderson@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260216034432.23912-2-richard.henderson@linaro.org/mbox/",
    "series": [
        {
            "id": 492243,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/492243/?format=api",
            "date": "2026-02-16T03:44:19",
            "name": "target/arm: Support SME for KVM",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492243/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196690/checks/",
    "tags": {},
    "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=yMsAxXn/;\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 4fDpbQ6yP6z1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 16 Feb 2026 14:46:10 +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 1vrpXR-0002VQ-Ei; Sun, 15 Feb 2026 22:44:45 -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 1vrpXQ-0002V0-4H\n for qemu-devel@nongnu.org; Sun, 15 Feb 2026 22:44:44 -0500",
            "from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633])\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 1vrpXO-0002OH-70\n for qemu-devel@nongnu.org; Sun, 15 Feb 2026 22:44:43 -0500",
            "by mail-pl1-x633.google.com with SMTP id\n d9443c01a7336-2aaed195901so12760045ad.0\n for <qemu-devel@nongnu.org>; Sun, 15 Feb 2026 19:44:41 -0800 (PST)",
            "from stoup.. ([2401:d002:dc0f:2100:4a1:428a:70f2:5844])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2ad1aadca84sm53294155ad.70.2026.02.15.19.44.39\n for <qemu-devel@nongnu.org>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 15 Feb 2026 19:44:40 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1771213481; x=1771818281; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=9NzjEqJY7+NdUrSQzEJSoR9zNgCwGWGpP9vTRT1K2JY=;\n b=yMsAxXn/osoE1eC/DTYhJAKtqz7CkPtYJQit86SyqS9xpxi07S7lqd097nK9dHK3L7\n sneZV3sTIXGAPB9u4hpZ4aEC1rtsgkrm/3tV16WchgTxrISMUsakKL5V7ZTJlo9m0+Mz\n hiQcCsPf09WHmtt17M2GzH02LZF7w+9FsVa8oVN+U5UYSna7iAW8a58fr+P45qATCOVu\n M6RwMGEDl8dJVLhGbarg1NIMmtDFpzQ8yE1j+b02PF/dW1UyoBNW/7yfjIqPWm22dwlF\n Xlyi8qx/IzulijsSNjjORWx73f4Xl/M06YjCIDO2e93q1QyeFXSfKNVSufl1HI3+LelO\n x6XA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771213481; x=1771818281;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=9NzjEqJY7+NdUrSQzEJSoR9zNgCwGWGpP9vTRT1K2JY=;\n b=EVFZpuSCgd6vUmTcqgMOpvAPQVHdg2OLpDcO2N+TC+PfOGWoFp/UTkIdeHKAsPW4Hr\n WFpEYgF7eCnVW/qfRb/ThFP9ysOI2V5Nr+0UalszMz6MCw/BUAupFoqQ6iygp3EVGkqM\n Bn8OfiS4GEwub2hZcZtww1shU0+S4EnE4Fdi6ps6b1tj1XbMMU9TnykcKfOQzkKeCuH2\n ER25Uaip5VTdkP6CXXExqdufCJA/8oAxE5dh6W9aj7Np+Xz7AOE1DZTQ2WdQCZcgwxgq\n rRK9qAMbqddE4UafLYtub9vcmFhyRksy8IelFYeTZbyKZyn+jQLCcgh0tlexoVXBVNl1\n fZdQ==",
        "X-Gm-Message-State": "AOJu0Yx7vOLnt7fgtU2bhkaQfdtzs0izQpS0GrWZkg8sLIuPgjfZp5gc\n ARaPf+PpcL2/LmxR5gaNCodTwKSmv3Xj7INaSYf0Z7W6idmVUQh8oRAT58cLFQ9qmVod5HeD/04\n mE12ws1E=",
        "X-Gm-Gg": "AZuq6aJwIyFILFYF12tWuEOuybmdR5ypZq5TeseED6UHNS50ingWC3C+3fnekkMzcOG\n w+Ru0CLZty8ncD39ZRaXaS053lBdg5UHKGDquekleo14iujcAbnNLUOhWdrdomIqulZTV745gX7\n yv/pSRgrb4v9jBWAfGGIgJ3jP6k5gv4fAogXgouwVGMol/WaOYJB678OYnUsX7t56ifjDvNTd8H\n 3QXPnDI3wy+uppoMwuurnIZDEkKDA2YBZ0EHp7468YdNH6Sm0XGt2ILtrcTwuSSIQgrGJhzi3hw\n YzcwZ89lDMfwrFU6UpbnwvI3E1xwwOi7NeyoDjqrXwkhUSjYd30u6T3cxBkyOtMoZgKKiUj571v\n 26xSiWt51IANTR5lqSS3GAab5IIPt7FTbuhINgSBzMIlZeufEGSav2o8Om/1VXb2LVFPQxMfb5T\n +NEhr0ITEpx/i7HgHOUXuN9naDNXTROes1",
        "X-Received": "by 2002:a17:902:f612:b0:295:8a2a:9595 with SMTP id\n d9443c01a7336-2ab505d7b3cmr100704075ad.39.1771213480475;\n Sun, 15 Feb 2026 19:44:40 -0800 (PST)",
        "From": "Richard Henderson <richard.henderson@linaro.org>",
        "To": "qemu-devel@nongnu.org",
        "Subject": "[RFC PATCH 01/13] NOTFORMERGE: Update linux-headers for arm64 kvm\n from SME devel branch",
        "Date": "Mon, 16 Feb 2026 13:44:20 +1000",
        "Message-ID": "<20260216034432.23912-2-richard.henderson@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260216034432.23912-1-richard.henderson@linaro.org>",
        "References": "<20260216034432.23912-1-richard.henderson@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::633;\n envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x633.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": "To be replaced by a proper update once the API is merged upstream.\n\nSigned-off-by: Richard Henderson <richard.henderson@linaro.org>\n---\n linux-headers/asm-arm64/kvm.h | 33 +++++++++++++++++++++++++++++++++\n linux-headers/linux/kvm.h     |  1 +\n 2 files changed, 34 insertions(+)",
    "diff": "diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm-arm64/kvm.h\nindex 46ffbddab5..bbfc4781ca 100644\n--- a/linux-headers/asm-arm64/kvm.h\n+++ b/linux-headers/asm-arm64/kvm.h\n@@ -106,6 +106,13 @@ struct kvm_regs {\n #define KVM_ARM_VCPU_PTRAUTH_GENERIC\t6 /* VCPU uses generic authentication */\n #define KVM_ARM_VCPU_HAS_EL2\t\t7 /* Support nested virtualization */\n #define KVM_ARM_VCPU_HAS_EL2_E2H0\t8 /* Limit NV support to E2H RES0 */\n+#define KVM_ARM_VCPU_SME\t\t9 /* enable SME for this CPU */\n+\n+/*\n+ * An alias for _SVE since we finalize VL configuration for both SVE and SME\n+ * simultaneously.\n+ */\n+#define KVM_ARM_VCPU_VEC\t\tKVM_ARM_VCPU_SVE\n \n struct kvm_vcpu_init {\n \t__u32 target;\n@@ -348,6 +355,32 @@ struct kvm_arm_counter_offset {\n #define KVM_ARM64_SVE_VLS_WORDS\t\\\n \t((KVM_ARM64_SVE_VQ_MAX - KVM_ARM64_SVE_VQ_MIN) / 64 + 1)\n \n+/* SME registers */\n+#define KVM_REG_ARM64_SME\t\t(0x17 << KVM_REG_ARM_COPROC_SHIFT)\n+\n+#define KVM_ARM64_SME_VQ_MIN __SVE_VQ_MIN\n+#define KVM_ARM64_SME_VQ_MAX __SVE_VQ_MAX\n+\n+/* ZA and ZTn occupy blocks at the following offsets within this range: */\n+#define KVM_REG_ARM64_SME_ZA_BASE\t0\n+#define KVM_REG_ARM64_SME_ZT_BASE\t0x600\n+\n+#define KVM_ARM64_SME_MAX_ZAHREG\t(__SVE_VQ_BYTES * KVM_ARM64_SME_VQ_MAX)\n+\n+#define KVM_REG_ARM64_SME_ZAHREG(n, i)\t\t\t\t\t\\\n+\t(KVM_REG_ARM64 | KVM_REG_ARM64_SME | KVM_REG_ARM64_SME_ZA_BASE | \\\n+\t KVM_REG_SIZE_U2048 |\t\t\t\t\t\t\\\n+\t (((n) & (KVM_ARM64_SME_MAX_ZAHREG - 1)) << 5) |\t\t\\\n+\t ((i) & (KVM_ARM64_SVE_MAX_SLICES - 1)))\n+\n+#define KVM_REG_ARM64_SME_ZTREG_SIZE\t(512 / 8)\n+\n+/* Vector lengths pseudo-register: */\n+#define KVM_REG_ARM64_SME_VLS\t\t(KVM_REG_ARM64 | KVM_REG_ARM64_SME | \\\n+\t\t\t\t\t KVM_REG_SIZE_U512 | 0xfffe)\n+#define KVM_ARM64_SME_VLS_WORDS\t\\\n+\t((KVM_ARM64_SVE_VQ_MAX - KVM_ARM64_SVE_VQ_MIN) / 64 + 1)\n+\n /* Bitmap feature firmware registers */\n #define KVM_REG_ARM_FW_FEAT_BMAP\t\t(0x0016 << KVM_REG_ARM_COPROC_SHIFT)\n #define KVM_REG_ARM_FW_FEAT_BMAP_REG(r)\t\t(KVM_REG_ARM64 | KVM_REG_SIZE_U64 | \\\ndiff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h\nindex a4ab42dcba..d8fd57d681 100644\n--- a/linux-headers/linux/kvm.h\n+++ b/linux-headers/linux/kvm.h\n@@ -966,6 +966,7 @@ struct kvm_enable_cap {\n #define KVM_CAP_GUEST_MEMFD_FLAGS 244\n #define KVM_CAP_ARM_SEA_TO_USER 245\n #define KVM_CAP_S390_USER_OPEREXEC 246\n+#define KVM_CAP_ARM_SME 247\n \n struct kvm_irq_routing_irqchip {\n \t__u32 irqchip;\n",
    "prefixes": [
        "RFC",
        "01/13"
    ]
}