get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2202511,
    "url": "http://patchwork.ozlabs.org/api/patches/2202511/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260227190619.8867-4-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": "<20260227190619.8867-4-mohamed@unpredictable.fr>",
    "list_archive_url": null,
    "date": "2026-02-27T19:06:18",
    "name": "[3/4] whpx: i386: enable synthetic processor features",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "323a8fb732879ead9d8f1a19c21d50688ec9be79",
    "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/20260227190619.8867-4-mohamed@unpredictable.fr/mbox/",
    "series": [
        {
            "id": 493800,
            "url": "http://patchwork.ozlabs.org/api/series/493800/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=493800",
            "date": "2026-02-27T19:06:17",
            "name": "whpx: i386: even more changes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/493800/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2202511/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2202511/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=f4fW1R68;\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 4fMyWN1qV6z1xxV\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Feb 2026 06:07:28 +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 1vw3Ah-0003G4-54; Fri, 27 Feb 2026 14:06:43 -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 1vw3AY-0003Es-Oe\n for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:35 -0500",
            "from p-west2-cluster3-host6-snip4-4.eps.apple.com ([57.103.69.97]\n helo=outbound.mr.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 1vw3AW-0006RE-8Y\n for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:34 -0500",
            "from outbound.mr.icloud.com (unknown [127.0.0.2])\n by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPS id\n 768E51800155; Fri, 27 Feb 2026 19:06:27 +0000 (UTC)",
            "from localhost.localdomain (unknown [17.57.152.38])\n by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPSA id\n 1E53818001B0; Fri, 27 Feb 2026 19:06:25 +0000 (UTC)"
        ],
        "Dkim-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr;\n s=sig1; t=1772219188; x=1774811188;\n bh=LjzGrhEn0ykJAOrChlujow4EMgIqhCxyPavUws3eZDg=;\n h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme;\n b=f4fW1R68Yt+08jCkuj2LELOVbDapZWkwDw2sAhhxgUJh9+AlEyVUm5jrNSvDeZhEue5JsuWjLbxE5nPn8PJyQShF0ghN9NJiJJJ3J7O1sfPbs/jfkjlczCUJ02erJd7/tAr0Tb7QDomt7MKGz12LHBHOZIqb7dzu/KMVdLqpthYRWgOuJvaIGEcBoKHo41UQtdh3/O2bwnmhbBODYMCHfpf6WqwHeNqEXfgpbepxjWnEo+VgntJLZopsmUB79x+zNfayOAe1aql6u19V0ReVhh+N7Ah2XzkeAFn3ZVCu4NgtiP6FE7+enBUkHpmGcNlZeTJbnUB2B5VMpAxCILIURA==",
        "mail-alias-created-date": "1752046281608",
        "From": "Mohamed Mediouni <mohamed@unpredictable.fr>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Mohamed Mediouni <mohamed@unpredictable.fr>,\n Pedro Barbuda <pbarbuda@microsoft.com>",
        "Subject": "[PATCH 3/4] whpx: i386: enable synthetic processor features",
        "Date": "Fri, 27 Feb 2026 20:06:18 +0100",
        "Message-ID": "<20260227190619.8867-4-mohamed@unpredictable.fr>",
        "X-Mailer": "git-send-email 2.50.1",
        "In-Reply-To": "<20260227190619.8867-1-mohamed@unpredictable.fr>",
        "References": "<20260227190619.8867-1-mohamed@unpredictable.fr>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Proofpoint-GUID": "K0CYA5vu2nTuqjOGsJNdEAifx3tsW4qq",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjI3MDE2OCBTYWx0ZWRfX46fsds8AoWCe\n LTh1P7aSMUxUqkWqcyJrrrUSMYB4EXcpwxidmbxICUyToma2tnYWP5uQVv7MaJrTSJXvHgAYIwo\n Rl5v8SA2EdlNrirEeTke4lpBxXi8FtsLmbwTCYbTFFO0xEeEdnvc3NH3uGoBquNYucGB6otnrmo\n cGglka2yMYy7hjQLWNIX+sXAXgKU+nynbt7GrufZt3qP8HuzqoAegbL9rSmgExhTGW9SxqMnWbb\n SF+fZHfLUdIU+6uEEbPl2vThb1CI3XOMnd+Q9toWpFNv6QemHwvPZT08dozJymhQoES6GQggM0E\n 8QfqAs7leA1fzfNyPTmAm7GhXzti8MV5HU0xAlHGZzxwEwnoIaFyQ5W6phUuyY=",
        "X-Proofpoint-ORIG-GUID": "K0CYA5vu2nTuqjOGsJNdEAifx3tsW4qq",
        "X-Authority-Info-Out": "v=2.4 cv=N9Uk1m9B c=1 sm=1 tr=0 ts=69a1eb33\n cx=c_apl:c_apl_out:c_pps a=9OgfyREA4BUYbbCgc0Y0oA==:117\n a=9OgfyREA4BUYbbCgc0Y0oA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22\n a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=zrTx395S4Ej948ve6SYA:9",
        "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-27_03,2026-02-27_03,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=notspam policy=default score=0 adultscore=0\n phishscore=0 clxscore=1030 bulkscore=0 spamscore=0 malwarescore=0 mlxscore=0\n suspectscore=0 mlxlogscore=852 lowpriorityscore=0 classifier=spam authscore=0\n adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000\n definitions=main-2602270168",
        "X-JNJ": "\n AAAAAAAB8iFCAEPAbKZgLVEkUVVYiZqkYMGYQrq4sHTiZ2Fdhu6LYC57GujvsOcy54dtRp1EaL3A8nsTGofdpt1tI4iyKIl6ktA3v9iY/UpkGCcjRz+zlwrGei232iHXvASwiW4rKU7D0obvMi09FoHjLYMuZHf/EnmPu7XWbE3C6mElEkWWhc2jrPtfV2ua8VIH/DnalwyIYwoxuVGNEqgg7+Kmy5+Yk6LKuJYBlo7TKcFYTuGY0yf0oSpc/bcLU8OndyVK9s3FXa2PMaEWSM0iLPMqdj3zS4g51Ybb5AQWSllFuN2VIRwAbZQeEqm7iq4Cnl/FBKbp4iUfKe0tus1IGScgrfsXtrWql7Vz23pze/URxWAq17OCqBNL02dFU+qcpcn5Nf3NSR/SIiWrjpud74TPlX11hvIJCKdZP+6FJ4uAAAJhdsG3gFolXHgMPwXirbE7RAvXiN4ONjKoNVCKFR6Rh0l+NbsTHSyZhHRxNrJfLkhhsEPumaE2j8K+mH8m/HoD0Ic5Nw+aA3AXgjs7ZbrwaAd2JJ8NCT/46/zAr8f1Rr4K216Ve3EGT+1e7RILadb0LjwyW2aBDuHBd5J/cmcMEFgLGDWQ0mI=",
        "Received-SPF": "pass client-ip=57.103.69.97;\n envelope-from=mohamed@unpredictable.fr; helo=outbound.mr.icloud.com",
        "X-Spam_score_int": "-9",
        "X-Spam_score": "-1.0",
        "X-Spam_bar": "-",
        "X-Spam_report": "(-1.0 / 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_CERTIFIED_BLOCKED=0.706,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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": "At the point in time in which we setup the partition, the vCPUs\naren't available yet.\n\nSo enable them by default for now like what the MSHV backend does.\n\nAccessFrequencyRegs is shared for both the LAPIC frequency reporting and the TSC frequency.\n\nTo still benefit from the fixed TSC frequency reporting when kernel-irqchip=off, still enable AccessFrequencyRegs anyway.\n\nSigned-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>\n---\n target/i386/whpx/whpx-all.c | 34 ++++++++++++++++++++++++++++++++++\n 1 file changed, 34 insertions(+)",
    "diff": "diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c\nindex ccc52d1f96..e7e0a50da6 100644\n--- a/target/i386/whpx/whpx-all.c\n+++ b/target/i386/whpx/whpx-all.c\n@@ -2152,6 +2152,40 @@ int whpx_accel_init(AccelState *as, MachineState *ms)\n         goto error;\n     }\n \n+    /* Enable synthetic processor features */\n+    WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS synthetic_features;\n+    memset(&synthetic_features, 0, sizeof(WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS));\n+    synthetic_features.BanksCount = 1;\n+\n+    synthetic_features.Bank0.HypervisorPresent = 1;\n+    synthetic_features.Bank0.Hv1 = 1;\n+    synthetic_features.Bank0.AccessPartitionReferenceCounter = 1;\n+    synthetic_features.Bank0.AccessPartitionReferenceTsc = 1;\n+    /* if kernel-irqchip=off, HV_X64_MSR_APIC_FREQUENCY = 0. */\n+    synthetic_features.Bank0.AccessFrequencyRegs = 1;\n+    synthetic_features.Bank0.AccessVpIndex = 1;\n+    synthetic_features.Bank0.AccessHypercallRegs = 1;\n+    synthetic_features.Bank0.TbFlushHypercalls = 1;\n+\n+    if (whpx_irqchip_in_kernel()) {\n+        synthetic_features.Bank0.AccessSynicRegs = 1;\n+        synthetic_features.Bank0.AccessSyntheticTimerRegs = 1;\n+        synthetic_features.Bank0.AccessIntrCtrlRegs = 1;\n+        synthetic_features.Bank0.SyntheticClusterIpi = 1;\n+        synthetic_features.Bank0.DirectSyntheticTimers = 1;\n+    }\n+\n+    hr = whp_dispatch.WHvSetPartitionProperty(\n+            whpx->partition,\n+            WHvPartitionPropertyCodeSyntheticProcessorFeaturesBanks,\n+            &synthetic_features,\n+            sizeof(WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS));\n+    if (FAILED(hr)) {\n+        error_report(\"WHPX: Failed to set synthetic features, hr=%08lx\", hr);\n+        ret = -EINVAL;\n+        goto error;\n+    }\n+\n     /* Register for MSR and CPUID exits */\n     memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY));\n     prop.ExtendedVmExits.X64MsrExit = 1;\n",
    "prefixes": [
        "3/4"
    ]
}