[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 0/6] Implement SR-IOV support for PVH
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Fri, 25 Jul 2025 14:24:31 +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=o6+yXbolg5CM9+QqGJhBrictSKWAKQCyApQ9UxebH0U=; b=hVHi0Pv6M3fe5mz99LN+Q/4rN2UWDD0QZI3nOQoFrauZYSUtvBNJylCun/mknH4cUrvvbYE8gNKaiEUt4E8z7YknAGTQM+HJOd7tW8tqTGEQ/ZQVIZi1N39e/yUgk9Jq1H443GxeVVbXURbtNa8hRWsvLqlKCRaSjAqwuTSuPobYEEYuV7/a/tcpnPdqFY+8DWfqJxvTx0D4NTf7k1GElsjYRRUKu/SoyHXu3aIS1n8xH/SUvrFsch/qh8/N4SotDAvKar1e/uoyicMkl20t7weLWrcMz1zXkcu4jElk3oVyAdMTNUh/zbUOSuoUm3e1d1NuNh1PQvo3jDwDXNzP1Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uDuJ3lbCaosxNBZDsLdqj8DImY9SdV9NmB48NGhJcjBkMDPdDbH4b4zklIe5Kfk1e6zuM96miKqRqeVbzfrZUB8pfhWmLur3segHMD0/d0/9Z/opa54DEcZWwrU1fhCqder5Cm55kOAm3i7VVsJB5WIJneB8gT8Psx5u1LBlDHjIXyUVscdkydqEgKqO/Vwy0CSUKK0/fVZKw+vNK3gg9Azjo5RSkKBkQCdGy5nfo0bfLGAa99MiGcSWEopWCLucZgXKljbnNODeq4v/5liBDhLuJKegfuZRgnW+UW+Gx4nwZOuNrR5v7nCnBSenaUYeMMfmKWng4wmYeJEtIIK+eA==
- 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>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Community Manager <community.manager@xxxxxxxxxxxxxx>, 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>
- Delivery-date: Fri, 25 Jul 2025 14:24:41 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHb/W/WjOB7p4rlgUWQTCDi5B6RiQ==
- Thread-topic: [PATCH v1 0/6] 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 register and simplified handlers
for VFs header were implemented.
Core functionality is based on previous works [1] and [2].
Xen relies on dom0 to enable SR-IOV and call PHYSDEVOP_pci_device_* to inform
about addition/removal of VFs.
Tested on R-Car Spider board with Samsung NVMe SSD Controller 980 and Intel
X550T ethernet card.
Mykyta Poturai (1):
vpci: rename and export vpci_bar_add_rangeset
Stewart Hildebrand (5):
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: export vpci_init_capability_list()
vpci: add SR-IOV support for DomUs
CHANGELOG.md | 3 +-
SUPPORT.md | 2 -
xen/drivers/vpci/Makefile | 2 +-
xen/drivers/vpci/header.c | 49 +++---
xen/drivers/vpci/sriov.c | 352 ++++++++++++++++++++++++++++++++++++++
xen/drivers/vpci/vpci.c | 1 +
xen/include/xen/vpci.h | 20 ++-
7 files changed, 402 insertions(+), 27 deletions(-)
create mode 100644 xen/drivers/vpci/sriov.c
--
2.34.1
|