Implement PCI device enumeration on Arm
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest8 patches 3 repliesIn review
- v27 patches 3 repliesSuperseded
- v18 patches 9 repliesSuperseded
Changes in v3 from the cover letter
* add arm/pci: Mark pci_host_common_probe as init
* reorder patches
* see individual patches
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | arm/pci: Add pci-scan boot argumentdocs/ xen/ xen/ +1 more | +37 | 0 replies | |
| 2/8 | xen/dt: pass flags to callback in dt_for_each_range()xen/ xen/ xen/ +3 more | +11 | 0 replies | |
| 3/8 | xen/vpci: introduce has_vpci_bridgexen/ xen/ xen/ +2 more | +50 | 1 reply | |
| 4/8 | xen/pci: update DT for hwdom when it uses vpcidocs/ xen/ | +153 | 0 replies | |
| 5/8 | arm/pci: Mark pci_host_common_probe as initxen/ | +1 | 0 replies | |
| 6/8 | xen/pci: initialize BARsxen/ xen/ xen/ +2 more | +277 | 1 reply | |
| 7/8 | xen/pci: assign discovered devices to hwdomxen/ xen/ xen/ | +37 | 1 reply | |
| 8/8 | arm/pci: enable vpci for hwdom when pci-scan is enabledxen/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/8] Implement PCI device enumeration on Arm
This series adds basic PCI device enumeration in Xen on Arm. This will allow us to not rely on Dom0 enumeration for supported controllers, which will enable PCI passthrough for dom0less setups.
Enumeration is disabled by default and can be enabled with "pci-scan" cmdline option.
For now the discovered devices are only assigned to HW domain. To achieve this, several things need to be done:
1. A VPCI node is created for HW domain device tree, and the real PCI nodes are hidden from it.
2. Discovered devices BARs are initialized.
3. Register handles for VPCI are updated to change behaviour depending on whether or not the calling domain uses VPCI or HW PCI, instead of relying on is_hardware_domain()
Tested on QEMU.
Arm:
* pci-scan=yes pci-passthrough=yes
* pci-scan=no pci-passthrough=yes
* pci-scan=no pci-passthrough=no
X86:
* no special options
v2->v3:
* add arm/pci: Mark pci_host_common_probe as init
* reorder patches
* see individual patches
v1->v2:
* drop xen/pci: disable pci_device_{add,remove} when hwdom uses vpci on arm
* see individual patches
Edward Pickup (1):
arm/pci: Add pci-scan boot argument
Luca Fancellu (2):
xen/pci: update DT for hwdom when it uses vpci
xen/pci: assign discovered devices to hwdom
Mykyta Poturai (2):
arm/pci: Mark pci_host_common_probe as init arm/pci: enable vpci for hwdom when pci-scan is enabled
Stefano Stabellini (1):
xen/vpci: introduce has_vpci_bridge
Stewart Hildebrand (2):
xen/dt: pass flags to callback in dt_for_each_range() xen/pci: initialize BARs
docs/misc/xen-command-line.pandoc | 9 ++ xen/arch/arm/device.c | 4 +- xen/arch/arm/domain_build.c | 154 ++++++++++++++++++++++++++- xen/arch/arm/include/asm/domain.h | 3 +- xen/arch/arm/include/asm/pci.h | 10 ++ xen/arch/arm/include/asm/setup.h | 2 +- xen/arch/arm/pci/pci-host-common.c | 110 ++++++++++++++++++- xen/arch/arm/pci/pci.c | 139 +++++++++++++++++++++++- xen/common/device-tree/device-tree.c | 5 +- xen/common/rangeset.c | 62 ++++++++++- xen/drivers/passthrough/arm/iommu.c | 15 +++ xen/drivers/passthrough/pci.c | 11 ++ xen/drivers/vpci/header.c | 74 ++++++------- xen/drivers/vpci/vpci.c | 4 +- xen/include/xen/device_tree.h | 2 +- xen/include/xen/rangeset.h | 11 ++ xen/include/xen/vpci.h | 8 ++ 17 files changed, 565 insertions(+), 58 deletions(-)
Signature · 1 line
2.51.2