get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230647,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230647/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260429231519.2569088-2-mrathor@linux.microsoft.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260429231519.2569088-2-mrathor@linux.microsoft.com>",
    "date": "2026-04-29T23:15:17",
    "name": "[v0,1/3] mshv: Import declarations for irq remap and add irqbypass support",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "270bea3180b3ed320574c36e24c317446723922b",
    "submitter": {
        "id": 91512,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/91512/?format=api",
        "name": "Mukesh R",
        "email": "mrathor@linux.microsoft.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260429231519.2569088-2-mrathor@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 502164,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502164/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=502164",
            "date": "2026-04-29T23:15:16",
            "name": "PCI passthru on Hyper-V (Part II)",
            "version": 0,
            "mbox": "http://patchwork.ozlabs.org/series/502164/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230647/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230647/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-53430-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@vger.kernel.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=cBKhmmJl;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-pci+bounces-53430-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=linux.microsoft.com\n header.i=@linux.microsoft.com header.b=\"cBKhmmJl\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=13.77.154.182",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.microsoft.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.microsoft.com"
        ],
        "Received": [
            "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5Y7w0VPDz1yGq\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 09:15:56 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id AC539301147D\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 23:15:49 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 9D16D3988FB;\n\tWed, 29 Apr 2026 23:15:43 +0000 (UTC)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 55C1226F2B9;\n\tWed, 29 Apr 2026 23:15:42 +0000 (UTC)",
            "from mrdev.corp.microsoft.com (unknown [13.88.17.9])\n\tby linux.microsoft.com (Postfix) with ESMTPSA id 14E9720B716D;\n\tWed, 29 Apr 2026 16:15:42 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777504543; cv=none;\n b=t5ZREFkmrlvCmh6bG3DMH194N6CGcAeXuVh1Q8KWmU9BSFSA3XKP1BoO4rYofWc80qoQ799IRrq9tbvLkjh8y/TWjx9gWoU69+1AlQXjS5ZK7Z+9AD3U4nxNYZ8r1kejmYiBFUD8QHzW2wJQ5pl6Ce0u7YNKeCGEGXDSX2Q46+8=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777504543; c=relaxed/simple;\n\tbh=k1fyeqFvOWhWiwhuu03xoXEKXIOY/LlOjsI8Du2iXHI=;\n\th=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=NhtgBAdX3D0PQe+YxO+dpLZx/pRoGezaIsKkWml5Dzg3T333iHBgyvo/gZQrXEHEgGRc7iS/nzCsHzpDpOO9z3wawRVt/JJyC2EMp6IHH87p+aPCc5a43btDisdN84Y4daiS1Yyj+AOmSazY368PQp5wmrUpIcatcfV7JOnGJ4o=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.microsoft.com;\n spf=pass smtp.mailfrom=linux.microsoft.com;\n dkim=pass (1024-bit key) header.d=linux.microsoft.com\n header.i=@linux.microsoft.com header.b=cBKhmmJl;\n arc=none smtp.client-ip=13.77.154.182",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 14E9720B716D",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n\ts=default; t=1777504542;\n\tbh=NzAneEtzNkIbXybIamfJGsZ0CM2u/FE+l2+Du+bWYlc=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=cBKhmmJl/bxorseUXWyX6UQQ5whrKuTFX3z68t8rLWR7YCk6uFQgqkk6XzxMqfVx+\n\t gVnDf8O/rDQ70143Q8o0gG7qp+EqCzUKgYdblSfkovl3SUaFgFB22R81Tp8fWMWUl8\n\t GuNTvq++CJosiXKoYG4el5lleo3eiaj3jXL1TXz8=",
        "From": "Mukesh R <mrathor@linux.microsoft.com>",
        "To": "hpa@zytor.com,\n\trobin.murphy@arm.com,\n\trobh@kernel.org,\n\tlinux-hyperv@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tiommu@lists.linux.dev,\n\tlinux-pci@vger.kernel.org,\n\tlinux-arch@vger.kernel.org",
        "Subject": "[PATCH v0 1/3] mshv: Import declarations for irq remap and add\n irqbypass support",
        "Date": "Wed, 29 Apr 2026 16:15:17 -0700",
        "Message-ID": "<20260429231519.2569088-2-mrathor@linux.microsoft.com>",
        "X-Mailer": "git-send-email 2.51.2.vfs.0.1",
        "In-Reply-To": "<20260429231519.2569088-1-mrathor@linux.microsoft.com>",
        "References": "<20260429231519.2569088-1-mrathor@linux.microsoft.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "For the irq map/remap hypercalls, copy relevant data structures from\nhypervisor public headers into Linux equivalents. Also, update Kconfig and\nmshv_irqfd for irqbypass. Please note, irqbypass is required for doing\npassthru on MSHV. This because there is really no way of knowing the linux\nirq in the mshv_irqfd_assign and mshv_irqfd_update paths without it. The\nlinux irq is setup upfront by VFIO before irqfd assign/update happens.\n\nSigned-off-by: Mukesh R <mrathor@linux.microsoft.com>\n---\n drivers/hv/Kconfig          |  1 +\n drivers/hv/mshv_eventfd.h   |  3 +++\n include/hyperv/hvgdk_mini.h |  3 +++\n include/hyperv/hvhdk.h      | 17 +++++++++++++++++\n 4 files changed, 24 insertions(+)",
    "diff": "diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig\nindex 7937ac0cbd0f..c831fe25ca2b 100644\n--- a/drivers/hv/Kconfig\n+++ b/drivers/hv/Kconfig\n@@ -75,6 +75,7 @@ config MSHV_ROOT\n \t# no particular order, making it impossible to reassemble larger pages\n \tdepends on PAGE_SIZE_4KB\n \tselect EVENTFD\n+\tselect IRQ_BYPASS_MANAGER\n \tselect VIRT_XFER_TO_GUEST_WORK\n \tselect HMM_MIRROR\n \tselect MMU_NOTIFIER\ndiff --git a/drivers/hv/mshv_eventfd.h b/drivers/hv/mshv_eventfd.h\nindex 464c6b81ab33..ff4dd24b8ad4 100644\n--- a/drivers/hv/mshv_eventfd.h\n+++ b/drivers/hv/mshv_eventfd.h\n@@ -9,6 +9,7 @@\n #define __LINUX_MSHV_EVENTFD_H\n \n #include <linux/poll.h>\n+#include <linux/irqbypass.h>\n \n #include \"mshv.h\"\n #include \"mshv_root.h\"\n@@ -37,6 +38,8 @@ struct mshv_irqfd {\n \tstruct mshv_irqfd_resampler\t    *irqfd_resampler;\n \tstruct eventfd_ctx\t\t    *irqfd_resamplefd;\n \tstruct hlist_node\t\t     irqfd_resampler_hnode;\n+\tstruct irq_bypass_consumer\t     irqfd_bypass_cons;\n+\tstruct irq_bypass_producer\t    *irqfd_bypass_prod;\n };\n \n void mshv_eventfd_init(struct mshv_partition *partition);\ndiff --git a/include/hyperv/hvgdk_mini.h b/include/hyperv/hvgdk_mini.h\nindex da622fb06440..1ef480825705 100644\n--- a/include/hyperv/hvgdk_mini.h\n+++ b/include/hyperv/hvgdk_mini.h\n@@ -59,6 +59,8 @@ struct hv_u128 {\n #define HV_PARTITION_ID_INVALID\t\t((u64)0)\n #define HV_PARTITION_ID_SELF\t\t((u64)-1)\n \n+#define HV_MAX_VPS    256               /* HV_MAXIMUM_PROCESSORS */\n+\n /* Hyper-V specific model specific registers (MSRs) */\n \n #if defined(CONFIG_X86)\n@@ -508,6 +510,7 @@ union hv_vp_assist_msr_contents {\t /* HV_REGISTER_VP_ASSIST_PAGE */\n #define HVCALL_UNMAP_VP_STATE_PAGE\t\t\t0x00e2\n #define HVCALL_GET_VP_STATE\t\t\t\t0x00e3\n #define HVCALL_SET_VP_STATE\t\t\t\t0x00e4\n+#define HVCALL_GET_VPSET_FROM_MDA                       0x00e5\n #define HVCALL_GET_VP_CPUID_VALUES\t\t\t0x00f4\n #define HVCALL_GET_PARTITION_PROPERTY_EX\t\t0x0101\n #define HVCALL_MMIO_READ\t\t\t\t0x0106\ndiff --git a/include/hyperv/hvhdk.h b/include/hyperv/hvhdk.h\nindex 5e83d3714966..d0a892347ab1 100644\n--- a/include/hyperv/hvhdk.h\n+++ b/include/hyperv/hvhdk.h\n@@ -952,4 +952,21 @@ struct hv_input_modify_sparse_spa_page_host_access {\n #define HV_MODIFY_SPA_PAGE_HOST_ACCESS_LARGE_PAGE      0x4\n #define HV_MODIFY_SPA_PAGE_HOST_ACCESS_HUGE_PAGE       0x8\n \n+#ifdef CONFIG_X86\n+\n+struct hv_input_get_vp_set_from_mda {   /* HV_OUTPUT_GET_VP_SET_FROM_MDA */\n+\tu64 target_partid;\n+\tu64 dest_address;\n+\tu8  input_vtl;\n+\tu8  destmode_logical;         /* true => mode is logical */\n+\tu16 reserved0;                /* mbz */\n+\tu32 reserved1;                /* mbz */\n+} __packed;\n+\n+union hv_output_get_vp_set_from_mda {  /* HV_OUTPUT_GET_VP_SET_FROM_MDA */\n+\tstruct hv_vpset target_vpset;\n+\tu64 bitset_buffer[HV_GENERIC_SET_QWORD_COUNT(HV_MAX_VPS)];\n+} __packed;\n+\n+#endif /* CONFIG_X86 */\n #endif /* _HV_HVHDK_H */\n",
    "prefixes": [
        "v0",
        "1/3"
    ]
}