qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] hw/arm/virt-acpi-build: Introduce iommu option for pci root bus
@ 2021-02-26  8:49 Wang Xingang
  2021-02-26  8:49 ` [RFC PATCH 1/4] pci: Add PCI_BUS_IOMMU property Wang Xingang
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Wang Xingang @ 2021-02-26  8:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: xieyingtai, peter.maydell, cenjiahui, wangxingang5, mst,
	shannon.zhaosl, qemu-arm, imammedo

From: Xingang Wang <wangxingang5@huawei.com>

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            | 88 +++++++++++++++++++++--------
 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, 149 insertions(+), 24 deletions(-)

-- 
2.19.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-26  9:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26  8:49 [RFC PATCH 0/4] hw/arm/virt-acpi-build: Introduce iommu option for pci root bus Wang Xingang
2021-02-26  8:49 ` [RFC PATCH 1/4] pci: Add PCI_BUS_IOMMU property Wang Xingang
2021-02-26  8:49 ` [RFC PATCH 2/4] hw/pci: Add iommu option for pci root bus Wang Xingang
2021-02-26  8:49 ` [RFC PATCH 3/4] hw/pci: Add pci_root_bus_max_bus Wang Xingang
2021-02-26  8:49 ` [RFC PATCH 4/4] hw/arm/virt-acpi-build: Add explicit idmap info in IORT table Wang Xingang
2021-02-26  9:03 ` [RFC PATCH 0/4] hw/arm/virt-acpi-build: Introduce iommu option for pci root bus no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).