RE: [RFC v2 06/22] hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps

2019-11-06 Thread Liu, Yi L
> From: David Gibson > Sent: Monday, October 28, 2019 1:44 AM > To: Liu, Yi L > Subject: Re: [RFC v2 06/22] hw/pci: modify pci_setup_iommu() to set > PCIIOMMUOps > > On Thu, Oct 24, 2019 at 08:34:27AM -0400, Liu Yi L wrote: > > This patch modifies pci_setup_iommu()

RE: [RFC v2 06/22] hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps

2019-11-06 Thread Liu, Yi L
> From: Peter Xu [mailto:pet...@redhat.com] > Sent: Saturday, November 2, 2019 2:09 AM > To: Liu, Yi L > Subject: Re: [RFC v2 06/22] hw/pci: modify pci_setup_iommu() to set > PCIIOMMUOps > > On Thu, Oct 24, 2019 at 08:34:27AM -0400, Liu Yi L wrote: > > This pat

Re: [RFC v2 06/22] hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps

2019-11-01 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:27AM -0400, Liu Yi L wrote: > This patch modifies pci_setup_iommu() to set PCIIOMMUOps instead of only > setting PCIIOMMUFunc. PCIIOMMUFunc is previously used to get an address > space for a device in vendor specific way. The PCIIOMMUOps still offers > this

Re: [RFC v2 06/22] hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps

2019-10-27 Thread David Gibson
On Thu, Oct 24, 2019 at 08:34:27AM -0400, Liu Yi L wrote: > This patch modifies pci_setup_iommu() to set PCIIOMMUOps instead of only > setting PCIIOMMUFunc. PCIIOMMUFunc is previously used to get an address > space for a device in vendor specific way. The PCIIOMMUOps still offers > this

[RFC v2 06/22] hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps

2019-10-24 Thread Liu Yi L
This patch modifies pci_setup_iommu() to set PCIIOMMUOps instead of only setting PCIIOMMUFunc. PCIIOMMUFunc is previously used to get an address space for a device in vendor specific way. The PCIIOMMUOps still offers this functionality. Use PCIIOMMUOps leaves space to add more iommu related vendor