On 17/10/23 18:14, Cédric Le Goater wrote:
From: Liu Yi L <[email protected]>
This patch modifies pci_setup_iommu() to set PCIIOMMUOps
instead of setting PCIIOMMUFunc. PCIIOMMUFunc is used to
get an address space for a PCI device in vendor specific
way. The PCIIOMMUOps still offers this functionality. But
using PCIIOMMUOps leaves space to add more iommu related
vendor specific operations.
Cc: Kevin Tian <[email protected]>
Cc: Jacob Pan <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Eric Auger <[email protected]>
Cc: Yi Sun <[email protected]>
Cc: David Gibson <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Eric Auger <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Andrey Smirnov <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: "Hervé Poussineau" <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: BALATON Zoltan <[email protected]>
Cc: Elena Ufimtseva <[email protected]>
Cc: Jagannathan Raman <[email protected]>
Cc: Matthew Rosato <[email protected]>
Cc: Eric Farman <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Thomas Huth <[email protected]>
Reviewed-by: David Gibson <[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Signed-off-by: Liu Yi L <[email protected]>
[ clg: - refreshed on latest QEMU
- included hw/remote/iommu.c ]
Signed-off-by: Cédric Le Goater <[email protected]>
---
include/hw/pci/pci.h | 7 +++++--
include/hw/pci/pci_bus.h | 2 +-
hw/alpha/typhoon.c | 6 +++++-
hw/arm/smmu-common.c | 6 +++++-
hw/i386/amd_iommu.c | 6 +++++-
hw/i386/intel_iommu.c | 6 +++++-
hw/pci-host/designware.c | 6 +++++-
hw/pci-host/dino.c | 6 +++++-
hw/pci-host/pnv_phb3.c | 6 +++++-
hw/pci-host/pnv_phb4.c | 6 +++++-
hw/pci-host/ppce500.c | 6 +++++-
hw/pci-host/raven.c | 6 +++++-
hw/pci-host/sabre.c | 6 +++++-
hw/pci/pci.c | 18 +++++++++++++-----
hw/ppc/ppc440_pcix.c | 6 +++++-
hw/ppc/spapr_pci.c | 6 +++++-
hw/remote/iommu.c | 6 +++++-
hw/s390x/s390-pci-bus.c | 8 ++++++--
hw/virtio/virtio-iommu.c | 6 +++++-
19 files changed, 100 insertions(+), 25 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>