On Mon, 2015-03-02 at 15:50 +0800, Wei Yang wrote: > > > >Is there a hotplug remove path where we should also be calling > >iommu_free_table()? > > When VF is not introduced, no one calls this on powernv platform. > > Each PCI bus is a PE and it has its own iommu table, even a device is > hotpluged, the iommu table will not be released. Actually, I believe Alexey patches to add support for dynamic DMA windows for KVM guests using VFIO will also alloc/free iommu tables. In fact his patches somewhat change quite a few things in that area, and I'm currently reviewing them. Wei, can you post a new series when you've finished sync'ing with Bjorn ? At that point, I'll try to work with Alexey to evaluate the impact of his changes on your patches. Cheers, Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html