[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/8] Implement SR-IOV support for PVH
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Mon, 9 Mar 2026 11:08:25 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ORmtUgXQjDNdy0TrDi9teNyaY6deTFrWqE/Nuuy8jbU=; b=D2t0GIiQCe0F9gBVDz1wFuh6V4FFchw0jIP9RSRhQrcdzPjcDzK0l6vDOm9EAALLWWK7690wBjYdiDH3K/LnINZeAIXNa9DCvAtzJKudF+IZD75ybE0nHUPcB4ddGQVTh/vuhNVz3BgnC+qPQNLcKPfvE2dom0J/qCyb0dNYRRfrABpdlPPDkOPSn9bgp63dUxZMKKb40bomw6bxb1k+BCr9pKnz0QdoaDQBxaauktYxmGFYgB1gXaHmXPvAUDeaY4l6d3axBGSWjzLcmaRh1LWwtK4DUJeP2GghpSiaAJf9GSVmtJM+ZP1Tgp2a7ThK/LtU8FwCPr6x3EGEy0dNPA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uOvZmtkZw3rwduwh2mSb8KdWHJwNlpBrMK/iYdDlDnYlHLyqMsDzx5cdCnz59SbRSfEWJecrTaJMdo4S2LTSj/CtJ+QWPhEzx++0oUR++ayKXZxlNTPINeqW64lhUTs8nQe32V8hX3sOsGjaFpQYUn6MBZE1zfK4B3X1h0ZtRspvrYs0/pPTHPAYGz3nQE990WSZV6QrI+oQAKE0W+K4Y58jIBHmf5qH16ahRTQ5yUrZGKDg7OZ5bheerl5Q/P04lgeHqA55HJ/W9lMpqxSKrfxZnLrN/F42r9ocRLZ9URIBIOZ1Nyvj+BdzJcTi/PdsUjP/Oq/ee6yvNAsFFUH9NQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Mon, 09 Mar 2026 11:08:36 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcr7UMVee0NzcPjUC5JqPDg9DN/A==
- Thread-topic: [PATCH v2 0/8] Implement SR-IOV support for PVH
This series enables support for PCI SR-IOV capabilty for PVH domains.
It allows Dom0 to enable and use SR-IOV virtual functions and for this
functions to be passed to guests.
To achieve this, handlers for SRIOV_CONTROL registes, simplified handlers
for VFs header, and scanning for added VFs were implemented in Xen.
Core functionality is based on previous work[1].
Tested on R-Car Spider board with Samsung NVMe SSD Controller 980 and Intel
X550T ethernet card.
[1]:
https://lore.kernel.org/xen-devel/20180717094830.54806-1-roger.pau@xxxxxxxxxx/
v1->v2:
* rework the series for VF discovery in Xen
* separate doc changes into the last patch
Mykyta Poturai (4):
vpci: Use pervcpu ranges for BAR mapping
vpci: add a wait operation to the vpci vcpu pending actions
pci/iommu: Check that IOMMU supports removing devices
docs: Update SR-IOV support status
Stewart Hildebrand (4):
vpci: rename and export vpci_modify_bars
vpci: rename and export vpci_guest_mem_bar_{read,write}
vpci: add SR-IOV support for PVH Dom0
vpci: add SR-IOV support for DomUs
SUPPORT.md | 2 -
xen/common/domain.c | 24 ++
xen/drivers/passthrough/pci.c | 6 +
xen/drivers/vpci/Makefile | 2 +-
xen/drivers/vpci/header.c | 226 +++++++++---------
xen/drivers/vpci/sriov.c | 420 ++++++++++++++++++++++++++++++++++
xen/drivers/vpci/vpci.c | 3 -
xen/include/xen/vpci.h | 42 +++-
8 files changed, 608 insertions(+), 117 deletions(-)
create mode 100644 xen/drivers/vpci/sriov.c
--
2.51.2
|