qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2] hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps
Date: Wed, 18 Oct 2023 15:06:52 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 17/10/23 18:14, Cédric Le Goater wrote:
From: Liu Yi L <yi.l.liu@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.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>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
[ clg: - refreshed on latest QEMU
        - included hw/remote/iommu.c   ]
Signed-off-by: Cédric Le Goater <clg@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é <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]