get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219159,
    "url": "http://patchwork.ozlabs.org/api/patches/2219159/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260402-mshv_accel_arm64_supp-v2-7-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-7-754895c15e9e@linux.microsoft.com>",
    "list_archive_url": null,
    "date": "2026-04-02T12:52:34",
    "name": "[v2,07/14] accel/mshv: Add access_vp_regs synthetic proc features",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a6b141731bd78f8e674069a1aa85931572663061",
    "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-7-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/2219159/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219159/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=Lq4cV0fh;\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 4fmjxW1NVLz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 00:53:35 +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 1w8ILL-0008UE-Ri; Thu, 02 Apr 2026 09:44:19 -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 1w8IKv-0004lE-MU; 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 1w8HXu-0008Sd-LD; Thu, 02 Apr 2026 08:53:16 -0400",
            "from localhost (unknown [131.107.147.136])\n by linux.microsoft.com (Postfix) with ESMTPSA id 898B320B7007;\n Thu,  2 Apr 2026 05:53:03 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 898B320B7007",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1775134383;\n bh=aiVWl92e6PUYoJGvSxfSYd8qlj5urawU2dcb1f8iQJs=;\n h=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n b=Lq4cV0fhYzNvugDB2XCRbqpYKCEsHsmwjbe9/Bi8Db/u7sVWDjEtAkTF1YpcGF+GT\n MS5CNdgaj/6PYruCoGHwjWktVP/N2LSRh+Ny0o/+AXk9tvOuET3Pv6nJLavbeir9tT\n JSqnx2cedcVs06Gsdzn3VSQV7P5sfSQBcXzaVWOM=",
        "From": "Aastha Rawat <aastharawat@linux.microsoft.com>",
        "Date": "Thu, 02 Apr 2026 12:52:34 +0000",
        "Subject": "[PATCH v2 07/14] accel/mshv: Add access_vp_regs synthetic proc\n features",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "\n <20260402-mshv_accel_arm64_supp-v2-7-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": "Enable access_vp_regs feature for regs. In arm64, this feature bit\nallows the guest to set VP registers using hypercall. This wasn't\nrequired for x86 because such registers are set using wrmsr instead of\nhypercall.\n\nSigned-off-by: Aastha Rawat <aastharawat@linux.microsoft.com>\n---\n accel/mshv/mshv-all.c     |  1 +\n include/hw/hyperv/hvhdk.h | 91 ++++++++++++++++++++++++++++++++++++++++++++++-\n 2 files changed, 91 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/accel/mshv/mshv-all.c b/accel/mshv/mshv-all.c\nindex 6940ad9989..5ce76e86db 100644\n--- a/accel/mshv/mshv-all.c\n+++ b/accel/mshv/mshv-all.c\n@@ -156,6 +156,7 @@ static int set_synthetic_proc_features(int vm_fd)\n     features.tb_flush_hypercalls = 1;\n     features.synthetic_cluster_ipi = 1;\n     features.direct_synthetic_timers = 1;\n+    features.access_vp_regs = 1;\n \n     mshv_arch_amend_proc_features(&features);\n \ndiff --git a/include/hw/hyperv/hvhdk.h b/include/hw/hyperv/hvhdk.h\nindex 2e1ef80972..3807ed4302 100644\n--- a/include/hw/hyperv/hvhdk.h\n+++ b/include/hw/hyperv/hvhdk.h\n@@ -94,11 +94,16 @@ union hv_partition_synthetic_processor_features {\n          */\n         uint64_t access_partition_reference_tsc:1;\n \n+#if defined(__x86_64__)\n+\n         /*\n          * Partition has access to the guest idle reg. Corresponds to\n          * access_guest_idle_reg privilege.\n          */\n         uint64_t access_guest_idle_reg:1;\n+#else\n+        uint64_t reserved_z10:1;\n+#endif\n \n         /*\n          * Partition has access to frequency regs. corresponds to\n@@ -110,11 +115,16 @@ union hv_partition_synthetic_processor_features {\n         uint64_t reserved_z13:1; /* Reserved for access_root_scheduler_reg */\n         uint64_t reserved_z14:1; /* Reserved for access_tsc_invariant_controls */\n \n+#if defined(__x86_64__)\n+\n         /*\n          * Extended GVA ranges for HvCallFlushVirtualAddressList hypercall.\n          * Corresponds to privilege.\n          */\n         uint64_t enable_extended_gva_ranges_for_flush_virtual_address_list:1;\n+#else\n+        uint64_t reserved_z15:1;\n+#endif\n \n         uint64_t reserved_z16:1; /* Reserved for access_vsm. */\n         uint64_t reserved_z17:1; /* Reserved for access_vp_registers. */\n@@ -161,13 +171,92 @@ union hv_partition_synthetic_processor_features {\n         /* HvCallRetargetDeviceInterrupt is supported. */\n         uint64_t retarget_device_interrupt:1;\n \n+#if defined(__x86_64__)\n         /* HvCallRestorePartitionTime is supported. */\n         uint64_t restore_time:1;\n \n         /* EnlightenedVmcs nested enlightenment is supported. */\n         uint64_t enlightened_vmcs:1;\n \n-        uint64_t reserved:30;\n+        uint64_t nested_debug_ctl:1;\n+        uint64_t synthetic_time_unhalted_timer:1;\n+        uint64_t idle_spec_ctrl:1;\n+\n+#else\n+        uint64_t reserved_z31:1;\n+        uint64_t reserved_z32:1;\n+        uint64_t reserved_z33:1;\n+        uint64_t reserved_z34:1;\n+        uint64_t reserved_z35:1;\n+#endif\n+\n+#if defined(__aarch64__)\n+        /*\n+         * Register intercepts supported in V1. As more registers are supported\n+         * in future releases, new bits will be added here to prevent migration\n+         * between incompatible hosts.\n+         *\n+         * List of registers supported in V1:\n+         * 1. TPIDRRO_EL0\n+         * 2. TPIDR_EL1\n+         * 3. SCTLR_EL1 - Supports write intercept mask.\n+         * 4. VBAR_EL1\n+         * 5. TCR_EL1 - Supports write intercept mask.\n+         * 6. MAIR_EL1 - Supports write intercept mask.\n+         * 7. CPACR_EL1 - Supports write intercept mask.\n+         * 8. CONTEXTIDR_EL1\n+         * 9. PAuth keys (total 10 registers)\n+         * 10. HvArm64RegisterSyntheticException\n+         */\n+        uint64_t register_intercepts_v1:1;\n+#else\n+        uint64_t reserved_z36:1;\n+#endif\n+\n+        /* HvCallWakeVps is supported */\n+        uint64_t wake_vps:1;\n+\n+        /*\n+         * HvCallGet/SetVpRegisters is supported.\n+         * Corresponds to AccessVpRegisters privilege.\n+         * This feature only affects exo partitions.\n+         */\n+        uint64_t access_vp_regs:1;\n+\n+#if defined(__aarch64__)\n+        /* HvCallSyncContext/Ex is supported. */\n+        uint64_t sync_context:1;\n+#else\n+        uint64_t reserved_z39:1;\n+#endif /* __aarch64__ */\n+\n+        /*\n+         * Management VTL synic support is allowed.\n+         * Corresponds to the ManagementVtlSynicSupport privilege.\n+         */\n+        uint64_t management_vtl_synic_support:1;\n+\n+#if defined(__x86_64__)\n+        /*\n+         * Hypervisor supports guest mechanism to signal pending interrupts to\n+         * paravisor.\n+         */\n+        uint64_t proxy_interrupt_doorbell_support:1;\n+#else\n+        uint64_t reserved_z41:1;\n+#endif\n+\n+#if defined(__aarch64__)\n+        /* InterceptSystemResetAvailable is exposed. */\n+        uint64_t intercept_system_reset:1;\n+#else\n+        uint64_t reserved_z42:1;\n+#endif\n+\n+        /* Hypercalls for host MMIO operations are available. */\n+        uint64_t mmio_hypercalls:1;\n+\n+        uint64_t reserved:20;\n     };\n };\n \n",
    "prefixes": [
        "v2",
        "07/14"
    ]
}