Skip to content

vpci/msix: separate out common MSI-X code

Mykyta Poturai xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vpci/msix: move helpers to commonxen/arch/x86/include/asm/msi.h xen/arch/x86/msi.c xen/drivers/passthrough/amd/iommu.h +3 more+25 -261 reply
2/3vpci/msix: move msix region removal to msix.cxen/drivers/vpci/header.c xen/drivers/vpci/msix.c xen/drivers/vpci/private.h+42 -250 replies
3/3vpci/msix: move common msix code to common filexen/drivers/vpci/Makefile xen/drivers/vpci/msix.c xen/drivers/vpci/msix_common.c +1 more+215 -1581 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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/[email protected]/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
Signature · 1 line
2.55.0