get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196189,
    "url": "http://patchwork.ozlabs.org/api/patches/2196189/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260213034556.13471-5-mohamed@unpredictable.fr/",
    "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": "<20260213034556.13471-5-mohamed@unpredictable.fr>",
    "list_archive_url": null,
    "date": "2026-02-13T03:45:47",
    "name": "[v2,04/10] whpx: refactor whpx_destroy_vcpu to arch-specific function",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "3fdce7a748b9d95364322c4a5ce9ade19cc4509a",
    "submitter": {
        "id": 91318,
        "url": "http://patchwork.ozlabs.org/api/people/91318/?format=api",
        "name": "Mohamed Mediouni",
        "email": "mohamed@unpredictable.fr"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260213034556.13471-5-mohamed@unpredictable.fr/mbox/",
    "series": [
        {
            "id": 492055,
            "url": "http://patchwork.ozlabs.org/api/series/492055/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=492055",
            "date": "2026-02-13T03:45:43",
            "name": "whpx: x86 updates (2026-02)",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492055/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196189/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196189/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=unpredictable.fr header.i=@unpredictable.fr\n header.a=rsa-sha256 header.s=sig1 header.b=d78ypU2t;\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 4fByld2Qjxz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 14:46:53 +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 1vqk8O-0008Gm-Vd; Thu, 12 Feb 2026 22:46:24 -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 <mohamed@unpredictable.fr>)\n id 1vqk8N-0008GC-0t\n for qemu-devel@nongnu.org; Thu, 12 Feb 2026 22:46:23 -0500",
            "from p-west1-cluster1-host2-snip4-6.eps.apple.com ([57.103.64.79]\n helo=outbound.pv.icloud.com)\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <mohamed@unpredictable.fr>)\n id 1vqk8L-0005H5-J2\n for qemu-devel@nongnu.org; Thu, 12 Feb 2026 22:46:22 -0500",
            "from outbound.pv.icloud.com (unknown [127.0.0.2])\n by p00-icloudmta-asmtp-us-west-1a-60-percent-11 (Postfix) with ESMTPS id\n 79B6F18002E5; Fri, 13 Feb 2026 03:46:18 +0000 (UTC)",
            "from localhost.localdomain (unknown [17.56.9.36])\n by p00-icloudmta-asmtp-us-west-1a-60-percent-11 (Postfix) with ESMTPSA id\n 0416318002DE; Fri, 13 Feb 2026 03:46:14 +0000 (UTC)"
        ],
        "Dkim-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr;\n s=sig1; t=1770954380; x=1773546380;\n bh=SzPbZCaUO3NDYpRGPHTDqVjE5jH4BjEtis7wSjOSTkA=;\n h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme;\n b=d78ypU2tMvmrkuxH7ZWJBS96kOcoJRhGsKNVyQV8+oCF4d6zZJzjGPkEsrwagkJQEUPpkYA4tJPY0ZX6IGXscmuOOH1wIgKxCOdQ1pSeByd86Ud1HVP+X69MKMgCaY67wzsuJgYPS3fXyXls6+9md6cs5AS1X0snL/6k8GdJZzKJT2z8YD9PVTsWPYPE6GTbVIsNNTgOsHoB6AYhOVMEjtWkieSPOrUuisd498n2lhyi91tYf/wYc7PZrG9B2bj+SxFrzC90o89hHYlg0dPBVuRZG2TZ3sYZywPjnH8+xyN5zDW7/oZ40J9gf8zRwhclvChC3Bc5c/J+e80Di6oMxg==",
        "mail-alias-created-date": "1752046281608",
        "From": "Mohamed Mediouni <mohamed@unpredictable.fr>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n Magnus Kulke <magnuskulke@linux.microsoft.com>, =?utf-8?q?Philippe_Mathieu-?=\n\t=?utf-8?q?Daud=C3=A9?= <philmd@linaro.org>,\n Bernhard Beschow <shentey@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>,\n Mohamed Mediouni <mohamed@unpredictable.fr>, Wei Liu <wei.liu@kernel.org>,\n Pedro Barbuda <pbarbuda@microsoft.com>, Cameron Esfahani <dirty@apple.com>,\n Peter Maydell <peter.maydell@linaro.org>,\n Phil Dennis-Jordan <phil@philjordan.eu>, Zhao Liu <zhao1.liu@intel.com>,\n Roman Bolshakov <rbolshakov@ddn.com>,\n =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>",
        "Subject": "[PATCH v2 04/10] whpx: refactor whpx_destroy_vcpu to arch-specific\n function",
        "Date": "Fri, 13 Feb 2026 04:45:47 +0100",
        "Message-ID": "<20260213034556.13471-5-mohamed@unpredictable.fr>",
        "X-Mailer": "git-send-email 2.50.1",
        "In-Reply-To": "<20260213034556.13471-1-mohamed@unpredictable.fr>",
        "References": "<20260213034556.13471-1-mohamed@unpredictable.fr>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Authority-Info-Out": "v=2.4 cv=M9ZA6iws c=1 sm=1 tr=0 ts=698e9e8b\n cx=c_apl:c_apl_out:c_pps a=azHRBMxVc17uSn+fyuI/eg==:117\n a=azHRBMxVc17uSn+fyuI/eg==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22\n a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=MnziPJL1nimGiMRD7rAA:9",
        "X-Proofpoint-GUID": "Oc3yBaCx--Pz9_rryhIw1UHXUZ7avlc7",
        "X-Proofpoint-ORIG-GUID": "Oc3yBaCx--Pz9_rryhIw1UHXUZ7avlc7",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjEzMDAyNSBTYWx0ZWRfXzFQX6LzvvElc\n EnT9SU5XGGQjxDxoR6sERWHtIdZI1DTLFhY4FXWDf0Zz9NQQmAvF1mZqh+ZswmGUGfJmRJhVMLy\n rVo5gFwhnmoXUkcg9IkxznGjCVCY7SyOWx16h+fNAKIkhBf8oEoOIjR+afNowpyFcuFwllpScyf\n yL5MHn9JTtViBH5OIPJvT70eSjjqP7fDns13Sbq75aAjaA/0m4Wivp6FF6FJ/JmS6pXe+x104+R\n BOJtYnKLl4Ohc54kRcLVMMqWUFG3Nf0fk2DWANh+zjMaqwQdkWOBQRYOxECoy+Atby6JTQfOer+\n AYC3XwpZZa3VZa6LQSna+na3HVb0esXVXp2K+iKlsDcNJrrfie4qerWbk2EhEQ=",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-02-12_05,2026-02-12_03,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=notspam policy=default score=0 mlxlogscore=999\n lowpriorityscore=0 adultscore=0 mlxscore=0\n phishscore=0 suspectscore=0\n spamscore=0 clxscore=1030 bulkscore=0 malwarescore=0 classifier=spam\n authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000\n definitions=main-2602130025",
        "X-JNJ": "\n AAAAAAABsXb4p8zMp7cYHXyCcRsbgKtCvA664Nev4tN/D58+5lCE25ht26M/r4tNzxgeytYNjdDmxi08JwOD4hdD8RDJxDyD0721oE3HWmM8GmB35A4PF1Su0dIVG1BM4jYwuytX52R1LelLQM+6AkGhg6HBfUZ16omySiPTzFxSdoPQFTWUo1SvZ4AU/lb4AxdH6dEHJQ2qJ70JIJdxcVBvSm6H1UAmKg8fPd43lHkaDPqUxBZ5uM7cGKgWmUWWZ8ix+Za5uMp8exu8ATmrrvc/zEGPJS8tsQHcOvLa6JvrCXTooycax48lg16iPrtKHJ7GzBU1PUmdNzdNst9iaG7XF8c4dejpM+vx5wVbcG2MRzrpioSjLJPTv5UGneZgmBV+s+6s+GMWU6WGHSlsonUYt2iuDdNaCL4SAoXKnqCxsv6ncN6ig/YwDEKCI8cHK2DyHnH7P+qjs5kq7Z7JdlzDb9Bb7aPtTdHuwIZZy4gOF960TrJ65IWNBWKPiEyke2od5IZCiaLo6auZS8Jxv8o9XEACbOK0bki4EImK0lnQlEHmbnLEmnQg3vNy3BNvRJU/ugJewCvXJTt55x5bEQTa0bklsz942UoyQVH9tsF60DYP14T6V8Uj5hnGBb9vn0OFEv467T0WFXo1tmEKUS41MAV9l9fc5PBligpjfA7g8vI6veidaKBQ00lTgG0KxZ0/Xfx2BhXASWb4SRjlZLXvsm1kBEu1fikTjNp90T5I+xPDbgmbuvnmhGXxHjn1WaRv5pWGXJvSFrAONzykia+GvDWWvboxWfdUBjRj",
        "Received-SPF": "pass client-ip=57.103.64.79;\n envelope-from=mohamed@unpredictable.fr; helo=outbound.pv.icloud.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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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": "Avoid a TARGET_X86_64 define by moving platform-specific code\naway from generic WHPX support.\n\nSigned-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>\n---\n accel/whpx/whpx-common.c    | 5 +----\n include/system/whpx-all.h   | 1 +\n target/arm/whpx/whpx-all.c  | 5 +++++\n target/i386/whpx/whpx-all.c | 6 ++++++\n 4 files changed, 13 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/accel/whpx/whpx-common.c b/accel/whpx/whpx-common.c\nindex f018a8f5c7..c57a0d3f0f 100644\n--- a/accel/whpx/whpx-common.c\n+++ b/accel/whpx/whpx-common.c\n@@ -236,10 +236,7 @@ void whpx_destroy_vcpu(CPUState *cpu)\n     struct whpx_state *whpx = &whpx_global;\n \n     whp_dispatch.WHvDeleteVirtualProcessor(whpx->partition, cpu->cpu_index);\n-#ifdef HOST_X86_64\n-    AccelCPUState *vcpu = cpu->accel;\n-    whp_dispatch.WHvEmulatorDestroyEmulator(vcpu->emulator);\n-#endif\n+    whpx_arch_destroy_vcpu(cpu);\n     g_free(cpu->accel);\n }\n \ndiff --git a/include/system/whpx-all.h b/include/system/whpx-all.h\nindex 3db074c38c..b831c463b0 100644\n--- a/include/system/whpx-all.h\n+++ b/include/system/whpx-all.h\n@@ -17,6 +17,7 @@ void whpx_translate_cpu_breakpoints(\n     struct whpx_breakpoints *breakpoints,\n     CPUState *cpu,\n     int cpu_breakpoint_count);\n+void whpx_arch_destroy_vcpu(CPUState *cpu);\n \n /* called by whpx-accel-ops */\n bool whpx_arch_supports_guest_debug(void);\ndiff --git a/target/arm/whpx/whpx-all.c b/target/arm/whpx/whpx-all.c\nindex 8d0ca794af..d52580a082 100644\n--- a/target/arm/whpx/whpx-all.c\n+++ b/target/arm/whpx/whpx-all.c\n@@ -309,6 +309,11 @@ bool whpx_arch_supports_guest_debug(void)\n     return false;\n }\n \n+void whpx_arch_destroy_vcpu(CPUState *cpu)\n+{\n+    /* currently empty on Arm */\n+}\n+\n static void whpx_get_reg(CPUState *cpu, WHV_REGISTER_NAME reg, WHV_REGISTER_VALUE* val)\n {\n     struct whpx_state *whpx = &whpx_global;\ndiff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c\nindex e1f0fa5e77..cdcaebbe16 100644\n--- a/target/i386/whpx/whpx-all.c\n+++ b/target/i386/whpx/whpx-all.c\n@@ -1277,6 +1277,12 @@ bool whpx_arch_supports_guest_debug(void)\n     return true;\n }\n \n+void whpx_arch_destroy_vcpu(CPUState *cpu)\n+{\n+    AccelCPUState *vcpu = cpu->accel;\n+    whp_dispatch.WHvEmulatorDestroyEmulator(vcpu->emulator);\n+}\n+\n /* Returns the address of the next instruction that is about to be executed. */\n static vaddr whpx_vcpu_get_pc(CPUState *cpu, bool exit_context_valid)\n {\n",
    "prefixes": [
        "v2",
        "04/10"
    ]
}