Skip to content

PCI devices passthrough on Arm

Bertrand Marquis xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 21 repliesIn review
  2. v75 patches 17 repliesSuperseded
  3. v63 patches 58 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xen/vpci: Move ecam access functions to common codexen/arch/x86/hvm/io.c xen/drivers/vpci/vpci.c xen/include/asm-x86/pci.h +1 more+71 -430 replies
2/5xen/arm: Enable the existing x86 virtual PCI support for ARMxen/arch/arm/Makefile xen/arch/arm/domain.c xen/arch/arm/vpci.c +7 more+152 -121 replies
3/5tools/libxl: Modify libxl__arch_domain_init_hw_description...tools/libs/light/libxl_arch.h tools/libs/light/libxl_arm.c tools/libs/light/libxl_dom.c +1 more+5 -40 replies
4/5tools/libxl_arm: Modify libxl__prepare_dtb...tools/libs/light/libxl_arm.c+3 -20 replies
5/5arm/libxl: Emulated PCI device tree node in libxltools/libs/light/libxl_arm.c tools/libs/light/libxl_create.c xen/include/public/arch-arm.h+118 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRoger Pau MonnéIan JacksonJulien Grall
1/5A-b
2/5A-b
3/5R-b
4/5R-b
5/5A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/5] PCI devices passthrough on Arm

Hello All,

This serie is a follow up on Rahul serie where we included various fixes required after review on the mailing list and a new patch to move some of the x86 ecam related code to the common vpci code.

Most of the patches of the original serie have been merged and this serie includes only 2 of the original patches reworked and 3 new patches:

Move some ECAM related functions from x86 to generic vpci implementation:
- move vcpi mmcfg_{read/write} and vpci_access_allowed to common vpci.c.
- use ecam instead of mmcfg in common code.

Enable the existing x86 virtual PCI support for ARM:
- Add VPCI trap handler for each of the PCI device added for config space access.
- Register the trap handler in XEN for each of the host bridge PCI ECAM config space access.

Modify libxl function to take the whole domain config as argument:
- libxl__arch_domain_init_hw_description
- libxl__prepare_dt

Emulated PCI device tree node in libxl:
- Create a virtual PCI device tree node in libxl to enable the guest OS to discover the virtual PCI during guest boot.

The patch modifying xc_domain_ioport_permission has been removed from the serie.

Bertrand Marquis (1):
xen/vpci: Move ecam access functions to common code

Michal Orzel (2):
tools/libxl: Modify libxl__arch_domain_init_hw_description... tools/libxl_arm: Modify libxl__prepare_dtb...

Rahul Singh (2):
xen/arm: Enable the existing x86 virtual PCI support for ARM arm/libxl: Emulated PCI device tree node in libxl

 tools/libs/light/libxl_arch.h   |   2 +-
 tools/libs/light/libxl_arm.c    | 111 +++++++++++++++++++++++++++++++-
 tools/libs/light/libxl_create.c |   5 ++
 tools/libs/light/libxl_dom.c    |   2 +-
 tools/libs/light/libxl_x86.c    |   2 +-
 xen/arch/arm/Makefile           |   1 +
 xen/arch/arm/domain.c           |   4 ++
 xen/arch/arm/vpci.c             |  77 ++++++++++++++++++++++
 xen/arch/arm/vpci.h             |  36 +++++++++++
 xen/arch/x86/hvm/io.c           |  46 ++-----------
 xen/drivers/passthrough/pci.c   |  13 ++++
 xen/drivers/vpci/header.c       |   2 +-
 xen/drivers/vpci/vpci.c         |  64 ++++++++++++++++++
 xen/include/asm-arm/domain.h    |   1 +
 xen/include/asm-x86/pci.h       |   2 -
 xen/include/public/arch-arm.h   |  17 +++++
 xen/include/xen/pci.h           |   2 +
 xen/include/xen/vpci.h          |  12 ++++
 18 files changed, 349 insertions(+), 50 deletions(-)
 create mode 100644 xen/arch/arm/vpci.c
 create mode 100644 xen/arch/arm/vpci.h
Signature · 1 line
2.25.1