hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps
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.tian@intel.com> Cc: Jacob Pan <jacob.jun.pan@linux.intel.com> Cc: Peter Xu <peterx@redhat.com> Cc: Eric Auger <eric.auger@redhat.com> Cc: Yi Sun <yi.y.sun@linux.intel.com> Cc: David Gibson <david@gibson.dropbear.id.au> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Eric Auger <eric.auger@redhat.com> Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Peter Xu <peterx@redhat.com> Cc: Jason Wang <jasowang@redhat.com> Cc: Andrey Smirnov <andrew.smirnov@gmail.com> Cc: Helge Deller <deller@gmx.de> Cc: Hervé Poussineau <hpoussin@reactos.org> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Cc: BALATON Zoltan <balaton@eik.bme.hu> Cc: Elena Ufimtseva <elena.ufimtseva@oracle.com> Cc: Jagannathan Raman <jag.raman@oracle.com> Cc: Matthew Rosato <mjrosato@linux.ibm.com> Cc: Eric Farman <farman@linux.ibm.com> Cc: Halil Pasic <pasic@linux.ibm.com> Cc: Christian Borntraeger <borntraeger@linux.ibm.com> Cc: Thomas Huth <thuth@redhat.com> Cc: Helge Deller <deller@gmx.de> Reviewed-by:David Gibson <david@gibson.dropbear.id.au> Reviewed-by:
Peter Xu <peterx@redhat.com> Signed-off-by:
Yi Liu <yi.l.liu@intel.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by:
Eric Auger <eric.auger@redhat.com> Acked-by:
Michael S. Tsirkin <mst@redhat.com> [ clg: - refreshed on latest QEMU - included hw/remote/iommu.c - documentation update - asserts in pci_setup_iommu() - removed checks on iommu_bus->iommu_ops->get_address_space - included Elroy PCI host (PA-RISC) ] Signed-off-by:
Cédric Le Goater <clg@redhat.com>
Showing
- docs/devel/index-api.rst 1 addition, 0 deletionsdocs/devel/index-api.rst
- docs/devel/pci.rst 8 additions, 0 deletionsdocs/devel/pci.rst
- hw/alpha/typhoon.c 5 additions, 1 deletionhw/alpha/typhoon.c
- hw/arm/smmu-common.c 5 additions, 1 deletionhw/arm/smmu-common.c
- hw/i386/amd_iommu.c 5 additions, 1 deletionhw/i386/amd_iommu.c
- hw/i386/intel_iommu.c 5 additions, 1 deletionhw/i386/intel_iommu.c
- hw/pci-host/astro.c 5 additions, 1 deletionhw/pci-host/astro.c
- hw/pci-host/designware.c 5 additions, 1 deletionhw/pci-host/designware.c
- hw/pci-host/dino.c 5 additions, 1 deletionhw/pci-host/dino.c
- hw/pci-host/pnv_phb3.c 5 additions, 1 deletionhw/pci-host/pnv_phb3.c
- hw/pci-host/pnv_phb4.c 5 additions, 1 deletionhw/pci-host/pnv_phb4.c
- hw/pci-host/ppce500.c 5 additions, 1 deletionhw/pci-host/ppce500.c
- hw/pci-host/raven.c 5 additions, 1 deletionhw/pci-host/raven.c
- hw/pci-host/sabre.c 5 additions, 1 deletionhw/pci-host/sabre.c
- hw/pci/pci.c 13 additions, 5 deletionshw/pci/pci.c
- hw/ppc/ppc440_pcix.c 5 additions, 1 deletionhw/ppc/ppc440_pcix.c
- hw/ppc/spapr_pci.c 5 additions, 1 deletionhw/ppc/spapr_pci.c
- hw/remote/iommu.c 5 additions, 1 deletionhw/remote/iommu.c
- hw/s390x/s390-pci-bus.c 6 additions, 2 deletionshw/s390x/s390-pci-bus.c
- hw/virtio/virtio-iommu.c 5 additions, 1 deletionhw/virtio/virtio-iommu.c
Loading
Please register or sign in to comment