get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219162,
    "url": "http://patchwork.ozlabs.org/api/patches/2219162/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260402-mshv_accel_arm64_supp-v2-9-754895c15e9e@linux.microsoft.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": "<20260402-mshv_accel_arm64_supp-v2-9-754895c15e9e@linux.microsoft.com>",
    "list_archive_url": null,
    "date": "2026-04-02T12:52:36",
    "name": "[v2,09/14] accel/mshv: implement cpu_thread_is_idle() hook",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d75190d11c3c29927e0c95b9f2d3827401169376",
    "submitter": {
        "id": 92925,
        "url": "http://patchwork.ozlabs.org/api/people/92925/?format=api",
        "name": "Aastha Rawat",
        "email": "aastharawat@linux.microsoft.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260402-mshv_accel_arm64_supp-v2-9-754895c15e9e@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 498484,
            "url": "http://patchwork.ozlabs.org/api/series/498484/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=498484",
            "date": "2026-04-02T12:52:39",
            "name": "Add ARM64 support for MSHV accelerator",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498484/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219162/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219162/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 (1024-bit key;\n unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com\n header.a=rsa-sha256 header.s=default header.b=c9ajY54G;\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 4fmjxp1ctyz1yGJ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 00:53:50 +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 1w8ILH-0008N3-62; Thu, 02 Apr 2026 09:44:15 -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 <aastharawat@linux.microsoft.com>)\n id 1w8IKu-0004lE-1u; Thu, 02 Apr 2026 09:43:53 -0400",
            "from linux.microsoft.com ([13.77.154.182])\n by eggs.gnu.org with esmtp (Exim 4.90_1)\n (envelope-from <aastharawat@linux.microsoft.com>)\n id 1w8HYD-0008Sy-GI; Thu, 02 Apr 2026 08:53:34 -0400",
            "from localhost (unknown [131.107.147.136])\n by linux.microsoft.com (Postfix) with ESMTPSA id C5BFA20B7017;\n Thu,  2 Apr 2026 05:53:04 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com C5BFA20B7017",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1775134384;\n bh=Lda5boUb4MXundo8aUjZAsYLSyCiH0MhXZAZjJi/qsk=;\n h=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n b=c9ajY54Gr6CPLnq6mcK557XFy8Rg/MLiu3HIMLWIPC+8HxPzEGrws6KLrkPzuZN8t\n wrYLKpTNyqfeweJqKgRZss8EGeFBgdfNJ7p71/dEdaU9faHhJ2tFYsEMUhFUg3f1TU\n JrtuLdfvHckeUYz0Kt+57PLkEY+D6bNWx5tvuLT4=",
        "From": "Aastha Rawat <aastharawat@linux.microsoft.com>",
        "Date": "Thu, 02 Apr 2026 12:52:36 +0000",
        "Subject": "[PATCH v2 09/14] accel/mshv: implement cpu_thread_is_idle() hook",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "\n <20260402-mshv_accel_arm64_supp-v2-9-754895c15e9e@linux.microsoft.com>",
        "References": "\n <20260402-mshv_accel_arm64_supp-v2-0-754895c15e9e@linux.microsoft.com>",
        "In-Reply-To": "\n <20260402-mshv_accel_arm64_supp-v2-0-754895c15e9e@linux.microsoft.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Magnus Kulke <magnuskulke@linux.microsoft.com>,\n  Wei Liu <wei.liu@kernel.org>, Paolo Bonzini <pbonzini@redhat.com>,\n\t=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n\t=?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>, =?utf-8?q?Phil?=\n\t=?utf-8?q?ippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n  Peter Maydell <peter.maydell@linaro.org>,\n  Anirudh Rayabharam <anirudh@anirudhrb.com>,\n  Aastha Rawat <aastharawat@linux.microsoft.com>,\n  Magnus Kulke <magnus.kulke@linux.microsoft.com>, qemu-arm@nongnu.org,\n  Alexander Graf <agraf@csgraf.de>, Pedro Barbuda <pbarbuda@microsoft.com>,\n  Mohamed Mediouni <mohamed@unpredictable.fr>",
        "X-Mailer": "b4 0.15.1",
        "Received-SPF": "pass client-ip=13.77.154.182;\n envelope-from=aastharawat@linux.microsoft.com; helo=linux.microsoft.com",
        "X-Spam_score_int": "-42",
        "X-Spam_score": "-4.3",
        "X-Spam_bar": "----",
        "X-Spam_report": "(-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001, 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: Magnus Kulke <magnuskulke@linux.microsoft.com>\n\nIn MSHV the hypervisor APIC is always used, so we to implement this hook\nto make sure the AP's vcpu thread is not blocked waiting for an INIT SIPI\nby the BSP. Without this change soft reboots with -smp cpus>=2 will\nhang.\n\nSigned-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>\nReviewed-by: Mohamed Mediouni <mohamed@unpredictable.fr>\n---\n accel/mshv/mshv-all.c | 12 ++++++++++++\n 1 file changed, 12 insertions(+)",
    "diff": "diff --git a/accel/mshv/mshv-all.c b/accel/mshv/mshv-all.c\nindex 5ce76e86db..6c0ddbf3ca 100644\n--- a/accel/mshv/mshv-all.c\n+++ b/accel/mshv/mshv-all.c\n@@ -704,11 +704,23 @@ static const TypeInfo mshv_accel_type = {\n     .instance_size = sizeof(MshvState),\n };\n \n+/*\n+ * MSHV manages the LAPIC in the hypervisor. SIPI for APs are handled\n+ * internally. Halted vCPUs must still enter mshv_cpu_exec() so that\n+ * MSHV_RUN_VP is called and the hypervisor will deliver SIPI to wake APs.\n+ */\n+\n+static bool mshv_vcpu_thread_is_idle(CPUState *cpu)\n+{\n+    return false;\n+}\n+\n static void mshv_accel_ops_class_init(ObjectClass *oc, const void *data)\n {\n     AccelOpsClass *ops = ACCEL_OPS_CLASS(oc);\n \n     ops->create_vcpu_thread = mshv_start_vcpu_thread;\n+    ops->cpu_thread_is_idle = mshv_vcpu_thread_is_idle;\n     ops->synchronize_post_init = mshv_cpu_synchronize_post_init;\n     ops->synchronize_post_reset = mshv_cpu_synchronize_post_reset;\n     ops->synchronize_state = mshv_cpu_synchronize;\n",
    "prefixes": [
        "v2",
        "09/14"
    ]
}