Cover Letter Detail
Show a cover letter.
GET /api/covers/2231622/?format=api
{ "id": 2231622, "url": "http://patchwork.ozlabs.org/api/covers/2231622/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/cover/20260501004157.3108202-1-mrathor@linux.microsoft.com/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260501004157.3108202-1-mrathor@linux.microsoft.com>", "list_archive_url": null, "date": "2026-05-01T00:41:46", "name": "[V2,00/11] PCI passthru on Hyper-V (Part I)", "submitter": { "id": 91512, "url": "http://patchwork.ozlabs.org/api/people/91512/?format=api", "name": "Mukesh R", "email": "mrathor@linux.microsoft.com" }, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/cover/20260501004157.3108202-1-mrathor@linux.microsoft.com/mbox/", "series": [ { "id": 502410, "url": "http://patchwork.ozlabs.org/api/series/502410/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=502410", "date": "2026-05-01T00:41:46", "name": "PCI passthru on Hyper-V (Part I)", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/502410/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2231622/comments/", "headers": { "Return-Path": "\n <linux-pci+bounces-53558-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=Q4d943jk;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-53558-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=\"Q4d943jk\"", "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 tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::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 4g6C150GGPz1y1d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 10:42:16 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 21683302E874\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 1 May 2026 00:42:13 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 7319D25C6EE;\n\tFri, 1 May 2026 00:42:09 +0000 (UTC)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F1D50248F66;\n\tFri, 1 May 2026 00:42:07 +0000 (UTC)", "from mrdev.corp.microsoft.com (unknown [40.86.183.173])\n\tby linux.microsoft.com (Postfix) with ESMTPSA id D651420B7165;\n\tThu, 30 Apr 2026 17:42:06 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777596129; cv=none;\n b=h76gq+qj2dvGxTb6jfgv0OHBnUXhnOW/dv9KKcI4HQ1LSJFjWHUGoj0DBJqQB69zetlABzsVAyIiznq/pv097EXRtWvn1icRjW0V6V4VSdiGQWGs6JXIcrUV2LiFqp+85SH095GtPf2TDwXfynO09wOE98L613bw8QwtRUzAu0s=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777596129; c=relaxed/simple;\n\tbh=HgczbydWMyKMmyI8k4BSu6vP0cO81ZFeNwpOwluA5r8=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=RNi5HfwBxfPQaA+Myi+6mQyVUvEgm8OF1HzLH4MAbejyNxFDHQumpKgNuFiGrQq6gcEL+hmIZmFnshoSk+wwjG9GN3IPVWYCvT1mCkSRLtBqpm0YFekx6Ts1BMl6lrCAdh2+87ckg7UXLv1s5qDYy1qn/ikpkp0ZnBmBoewGTcY=", "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=Q4d943jk;\n arc=none smtp.client-ip=13.77.154.182", "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com D651420B7165", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n\ts=default; t=1777596127;\n\tbh=sobSl1Jx196MsXs3tYpB2WD+rsl04IeCc/J8ABEWGzo=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=Q4d943jkkAiqHUL3/pHeB+0zJfi0bz679ZcSuvAPmUOrsucCI9R6LWB6Qci6d05G8\n\t DLUH6nxICAqHUyod4w2j4qebNLE6LvDPgLd2rCd/xqIsB0tjVRhDE5g0WayRS4rFen\n\t wqbIJA1rREJEB0tmWQCJaJ44jDch6e4H5OmzpcI4=", "From": "Mukesh R <mrathor@linux.microsoft.com>", "To": "hpa@zytor.com,\n\trobin.murphy@arm.com,\n\trobh@kernel.org,\n\twei.liu@kernel.org,\n\tmrathor@linux.microsoft.com,\n\tmhklinux@outlook.com,\n\tmuislam@microsoft.com,\n\tnamjain@linux.microsoft.com,\n\tmagnuskulke@linux.microsoft.com,\n\tanbelski@linux.microsoft.com,\n\tlinux-kernel@vger.kernel.org,\n\tlinux-hyperv@vger.kernel.org,\n\tiommu@lists.linux.dev,\n\tlinux-pci@vger.kernel.org,\n\tlinux-arch@vger.kernel.org", "Cc": "kys@microsoft.com,\n\thaiyangz@microsoft.com,\n\tdecui@microsoft.com,\n\tlongli@microsoft.com,\n\ttglx@kernel.org,\n\tmingo@redhat.com,\n\tbp@alien8.de,\n\tdave.hansen@linux.intel.com,\n\tx86@kernel.org,\n\tjoro@8bytes.org,\n\twill@kernel.org,\n\tlpieralisi@kernel.org,\n\tkwilczynski@kernel.org,\n\tbhelgaas@google.com,\n\tarnd@arndb.de", "Subject": "[PATCH V2 00/11] PCI passthru on Hyper-V (Part I)", "Date": "Thu, 30 Apr 2026 17:41:46 -0700", "Message-ID": "<20260501004157.3108202-1-mrathor@linux.microsoft.com>", "X-Mailer": "git-send-email 2.51.2.vfs.0.1", "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": "Implement passthru of PCI devices to unprivileged virtual machines\n(VMs) when Linux is running as a privileged VM on Microsoft Hyper-V\nhypervisor. This support is made to fit within the workings of VFIO\nframework, and any VMM needing to use it must use the VFIO subsystem.\nThis supports both full device passthru and SR-IOV based VFs.\n\nAt a high level, the hypervisor supports traditional mapped iommu domains\nthat use explicit map and unmap hypercalls for mapping and unmapping guest\nRAM into the iommu subsystem. Hyper-V also has a concept of direct attach\ndevices whereby the iommu subsystem simply uses the guest HW page table\n(ept/npt/..). This series adds support for both, and both are made to\nwork with the VFIO subsystem.\n\nWhile this Part I focuses on memory mappings, Part II focuses on irq \nremapping and irq migrations.\n\nThis series rebased to: 5170a82e8921 (origin/hyperv-next)\n\nTesting:\n o Most testing done on hyperv-next:e733a9e28180 using Cloud Hypervisor (51).\n o Limited testing on : 5170a82e8921\n o Tested with impending Part II irq patches.\n o All tests involved PF passthru of devices using MSIx.\n o Following combinations were tested:\n - L1VH(1): test 1: Mellanox ConnectX-6 Lx passthru\n test 2: NVIDIA Tesla Tesla T4 GPU.\n test 3: Both of above simultaneous passthru\n - Baremetal dom0/root: All of above.\n\n(1) L1VH: this is a semi privileged VM that runs on Windows root on\n Hyper-V, and allows users to create more child VMs.\n\nThis series strives to establish a base line. Some pending work items:\n o arm64 : some delta to make this work on arm64 (in progress).\n o Qemu and OpenVMM support (in progress).\n o VF testing\n o device sleep/wakeup.\n o More stress testing with high end GPUs\n\nChanges in V2:\n o rebase to 5170a82e8921\n o minor fixes for arm64 build\n o drop patch 03: \"x86/hyperv: add insufficient memory support in irqdomain.c\" \n as it that path is no longer used\n o drop patch 08: \"PCI: hv: rename hv_compose_msi_msg .. \" and do it separately\n outside this series.\n o minor updates to commit messages\n\nChanges in V1:\n o patch 1: Don't tie hyperv-irq.c to CONFIG_HYPERV_IOMMU.\n o patch 4: Redesigned to address security vulnerability found by copilot \n with passing tgid as a parameter. Also, do tgid setting right \n after setting pt_id.\n o patch 5: Remove unused type parameter from mshv_device_ops.device_create\n o patch 7: mshv_partition_ioctl_create_device cleanup on copy_to_user.\n o patch 10: Add export of hv_build_devid_type_pci here to get rid of \n patch 11.\n o patch 12: Move functions to build device ids from patch 11 here for\n the benefit of arm64. Rename file to: hyperv-iommu-root.c.\n o patch 13: removed to be made part of interrupt part II of this support.\n o patch 14: get rid of fast path to reduce review noise.\n o New (last) patch to pin ram regions if device passthru to a VM.\n\nThanks,\n-Mukesh\n\nMukesh R (11):\n iommu/hyperv: rename hyperv-iommu.c to hyperv-irq.c\n x86/hyperv: cosmetic changes in irqdomain.c for readability\n mshv: Provide a way to get partition id if running in a VMM process\n mshv: Declarations and definitions for VFIO-MSHV bridge device\n mshv: Implement mshv bridge device for VFIO\n mshv: Add ioctl support for MSHV-VFIO bridge device\n mshv: Import data structs around device passthru from hyperv headers\n PCI: hv: Build device id for a VMBus device, export PCI devid function\n x86/hyperv: Implement hyperv virtual IOMMU\n mshv: Populate mmio mappings for PCI passthru\n mshv: Mark mem regions as non-movable upfront if device passthru\n\n MAINTAINERS | 3 +-\n arch/x86/hyperv/irqdomain.c | 199 ++--\n arch/x86/include/asm/mshyperv.h | 6 +\n arch/x86/kernel/pci-dma.c | 2 +\n drivers/hv/Makefile | 3 +-\n drivers/hv/mshv_root.h | 21 +\n drivers/hv/mshv_root_main.c | 266 ++++-\n drivers/hv/mshv_vfio.c | 211 ++++\n drivers/iommu/Kconfig | 5 +-\n drivers/iommu/Makefile | 3 +-\n drivers/iommu/hyperv-iommu-root.c | 908 ++++++++++++++++++\n .../iommu/{hyperv-iommu.c => hyperv-irq.c} | 6 +-\n drivers/iommu/irq_remapping.c | 2 +-\n drivers/pci/controller/pci-hyperv.c | 24 +\n include/asm-generic/mshyperv.h | 30 +\n include/hyperv/hvgdk_mini.h | 11 +\n include/hyperv/hvhdk_mini.h | 112 +++\n include/linux/hyperv.h | 6 +\n include/uapi/linux/mshv.h | 31 +\n 19 files changed, 1727 insertions(+), 122 deletions(-)\n create mode 100644 drivers/hv/mshv_vfio.c\n create mode 100644 drivers/iommu/hyperv-iommu-root.c\n rename drivers/iommu/{hyperv-iommu.c => hyperv-irq.c} (99%)" }