Re: [PATCH kernel 08/15] powerpc/vfio_spapr_tce: Add reference counting to iommu_table

2016-08-11 Thread David Gibson
On Wed, Aug 03, 2016 at 06:40:49PM +1000, Alexey Kardashevskiy wrote: > So far iommu_table obejcts were only used in virtual mode and had > a single owner. We are going to change by implementing in-kernel > acceleration of DMA mapping requests, including real mode. > > This adds a kref to

[PATCH kernel 08/15] powerpc/vfio_spapr_tce: Add reference counting to iommu_table

2016-08-03 Thread Alexey Kardashevskiy
So far iommu_table obejcts were only used in virtual mode and had a single owner. We are going to change by implementing in-kernel acceleration of DMA mapping requests, including real mode. This adds a kref to iommu_table and defines new helpers to update it. This replaces iommu_free_table() with