[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 0/3] vpci/msix: separate out common MSI-X code
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Mon, 26 Oct 2026 12:27:59 +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=Ahk2kZMQlYAsjLgIv69OmotXK+AZTCfAtfzin+W5rgU=; b=yuiwV+jiRLB+8Y+mJxpVGRpUvqA9s6+XEqJ1VXMEL8dXWhaslpOylHGSi5HJwTfI6Exi0Yu9mGpeXSEgubXxwHPVog7TM+o+p0oeBmUESh7nwZ3wNrAmMmTi7CS0dNIhoeTMLesYXmRriZoyqN0whNY3kuLXJ9+xG7PZ3kqgmid5Ls04NvSiCycQGPxJCdLCRAvR25h7GSD6sxx/b2zQXfFcT3hJ+PLhfZFW+7bstmvLjm1FN9c5dGCZQVOoc3SgMaLg8DNB0UvYZwtOe22Br1l9XNm0Dc2ovdje/Fn6lctexf9Crrnbfhw3ry5zDMTNsfYQsfuBlCHyttJZ081UAA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sxzBcfHuQy2OqW7l2P/Ip8MHjBZn8LU77da7ILNJGg3u4VNFrgmX5yV+0adq5jlPrT1nca3vbzEUQ16r0d5+t4Q16IQRlHRFfH96ix6++Th2+cmdrmLGyCzVIck9B+ncZw1a+lUefsa5fUQejrgq26X3H2BSStvSnwLhvkjnXNMxGvt6JWPCjNmvKCe9Jd853uYiowb4R6M18J4ImmKBWgNLwYCz7uquipl3odUwzpZLOQYXIt7y8Q/n5ix5bHhU90awiiyJrnFC1U9SitYlH9FauJr9KLsIGAHEnfFgGakBpedDke8FX8EbWRW4fNoJOa1tYATP/lKPzLjg1Arxbg==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
- Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
- Delivery-date: Mon, 26 Oct 2026 12:28:04 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHdZUVvbuj2+I/wmEeMfHolzOWTxg==
- Thread-topic: [PATCH v1 0/3] vpci/msix: separate out common MSI-X code
This is preparatory work to make vPCI MSI-X functional on Arm. Split the
vPCI MSI-X code so that intercepting the MSI-X table and PBA stays x86
only, while the MSI-X capability handling becomes common. No functional
change intended.
This is a continuation of work done by Rahul from February 2022[1].
The approach is inverted, instead of moving out the x86 parts, move out
the common ones that will be needed on Arm. Subsequent arm patches for
reference can be found here[2].
[1]
https://lore.kernel.org/xen-devel/cover.1644937405.git.rahul.singh@xxxxxxx/T/#t
[2] https://github.com/stewdk/xen/tree/pcie-passthrough-arm-vpci-v26
Rahul Singh (1):
vpci/msix: move helpers to common
Stewart Hildebrand (2):
vpci/msix: move msix region removal to msix.c
vpci/msix: move common msix code to common file
xen/arch/x86/include/asm/msi.h | 21 ---
xen/arch/x86/msi.c | 2 +-
xen/drivers/passthrough/amd/iommu.h | 2 +-
xen/drivers/vpci/Makefile | 6 +-
xen/drivers/vpci/header.c | 30 +----
xen/drivers/vpci/msi.c | 3 +-
xen/drivers/vpci/msix.c | 197 ++++++---------------------
xen/drivers/vpci/msix_common.c | 202 ++++++++++++++++++++++++++++
xen/drivers/vpci/private.h | 2 +
xen/include/xen/msi.h | 21 +++
xen/include/xen/vpci.h | 5 +
11 files changed, 282 insertions(+), 209 deletions(-)
create mode 100644 xen/drivers/vpci/msix_common.c
--
2.55.0
|