Re: [PATCH v2] KVM: PPC: move iommu_add_device earlier

2013-08-14 Thread Wei Yang
Alexey, On Thu, Aug 15, 2013 at 12:57:19PM +1000, Alexey Kardashevskiy wrote: >The current implementation of IOMMU on sPAPR does not use iommu_ops >and therefore does not call IOMMU API's bus_set_iommu() which >1) sets iommu_ops for a bus >2) registers a bus notifier >Instead, PCI devices are

[PATCH v2] KVM: PPC: move iommu_add_device earlier

2013-08-14 Thread Alexey Kardashevskiy
The current implementation of IOMMU on sPAPR does not use iommu_ops and therefore does not call IOMMU API's bus_set_iommu() which 1) sets iommu_ops for a bus 2) registers a bus notifier Instead, PCI devices are added to IOMMU groups from subsys_initcall_sync(tce_iommu_init) which does basically

[PATCH v2] KVM: PPC: move iommu_add_device earlier

2013-08-14 Thread Alexey Kardashevskiy
The current implementation of IOMMU on sPAPR does not use iommu_ops and therefore does not call IOMMU API's bus_set_iommu() which 1) sets iommu_ops for a bus 2) registers a bus notifier Instead, PCI devices are added to IOMMU groups from subsys_initcall_sync(tce_iommu_init) which does basically

Re: [PATCH v2] KVM: PPC: move iommu_add_device earlier

2013-08-14 Thread Wei Yang
Alexey, On Thu, Aug 15, 2013 at 12:57:19PM +1000, Alexey Kardashevskiy wrote: The current implementation of IOMMU on sPAPR does not use iommu_ops and therefore does not call IOMMU API's bus_set_iommu() which 1) sets iommu_ops for a bus 2) registers a bus notifier Instead, PCI devices are added to