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

2023-10-30 Thread Michael S. Tsirkin
On Mon, Oct 30, 2023 at 10:00:35AM +0100, Cédric Le Goater wrote: > On 10/23/23 10:24, Cédric Le Goater wrote: > > From: Yi Liu > > > > 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 i

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

2023-10-30 Thread Cédric Le Goater
On 10/23/23 10:24, Cédric Le Goater wrote: From: Yi Liu 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 PCII

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

2023-10-23 Thread Cédric Le Goater
Michael, On 10/23/23 10:24, Cédric Le Goater wrote: From: Yi Liu 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

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

2023-10-23 Thread Cédric Le Goater
From: Yi Liu 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 relate