Skip to content

RFC hw/arm/virt-acpi-build: Introduce iommu option for pci root bus

Wang Xingang qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pci: Add PCI_BUS_IOMMU propertyinclude/hw/pci/pci_bus.h+13 -02 replies
2/4hw/pci: Add iommu option for pci root bushw/arm/virt.c hw/pci-bridge/pci_expander_bridge.c hw/pci/pci.c +1 more+37 -13 replies
3/4hw/pci: Add pci_root_bus_max_bushw/pci/pci.c include/hw/pci/pci.h+34 -00 replies
4/4hw/arm/virt-acpi-build: Add explicit idmap info in IORT tablehw/arm/virt-acpi-build.c+69 -230 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC RESEND PATCH 0/4] hw/arm/virt-acpi-build: Introduce iommu option for pci root bus

From: Xingang Wang <[email protected]>

These patches add support for configure iommu on/off for pci root bus, including primary bus and pxb root bus. At present, All root bus will go through iommu when iommu is configured, which is not flexible.

So this add option to enable/disable iommu for primary bus and pxb root bus. When iommu is enabled for the root bus, devices attached to it will go through iommu. When iommu is disabled for the root bus, devices will not go through iommu accordingly.

Xingang Wang (4):
pci: Add PCI_BUS_IOMMU property
hw/pci: Add iommu option for pci root bus
hw/pci: Add pci_root_bus_max_bus hw/arm/virt-acpi-build: Add explicit idmap info in IORT table

 hw/arm/virt-acpi-build.c            | 92 +++++++++++++++++++++--------
 hw/arm/virt.c                       | 29 +++++++++
 hw/pci-bridge/pci_expander_bridge.c |  6 ++
 hw/pci/pci.c                        | 35 ++++++++++-
 include/hw/arm/virt.h               |  1 +
 include/hw/pci/pci.h                |  1 +
 include/hw/pci/pci_bus.h            | 13 ++++
 7 files changed, 153 insertions(+), 24 deletions(-)
Signature · 1 line
2.19.1