On 17/10/23 18:14, Cédric Le Goater wrote:
From: Liu Yi L <yi.l....@intel.com>
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 <kevin.t...@intel.com>
Cc: Jacob Pan <jacob.jun....@linux.intel.com>
Cc: Peter Xu <pet...@redhat.com>
Cc: Eric Auger <eric.au...@redhat.com>
Cc: Yi Sun <yi.y....@linux.intel.com>
Cc: David Gibson <da...@gibson.dropbear.id.au>
Cc: "Michael S. Tsirkin" <m...@redhat.com>
Cc: Eric Auger <eric.au...@redhat.com>
Cc: Peter Maydell <peter.mayd...@linaro.org>
Cc: Paolo Bonzini <pbonz...@redhat.com>
Cc: Peter Xu <pet...@redhat.com>
Cc: Jason Wang <jasow...@redhat.com>
Cc: Andrey Smirnov <andrew.smir...@gmail.com>
Cc: Helge Deller <del...@gmx.de>
Cc: "Hervé Poussineau" <hpous...@reactos.org>
Cc: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk>
Cc: BALATON Zoltan <bala...@eik.bme.hu>
Cc: Elena Ufimtseva <elena.ufimts...@oracle.com>
Cc: Jagannathan Raman <jag.ra...@oracle.com>
Cc: Matthew Rosato <mjros...@linux.ibm.com>
Cc: Eric Farman <far...@linux.ibm.com>
Cc: Halil Pasic <pa...@linux.ibm.com>
Cc: Christian Borntraeger <borntrae...@linux.ibm.com>
Cc: Thomas Huth <th...@redhat.com>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
Reviewed-by: Peter Xu <pet...@redhat.com>
Signed-off-by: Liu Yi L <yi.l....@intel.com>
[ clg: - refreshed on latest QEMU
- included hw/remote/iommu.c ]
Signed-off-by: Cédric Le Goater <c...@redhat.com>
---
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é <phi...@linaro.org>