Re: [PATCH kernel v10 11/34] vfio: powerpc/spapr: Moving pinning/unpinning to helpers

2015-05-13 Thread Alexey Kardashevskiy
On 05/13/2015 04:32 PM, Gavin Shan wrote: On Tue, May 12, 2015 at 01:39:00AM +1000, Alexey Kardashevskiy wrote: This is a pretty mechanical patch to make next patches simpler. New tce_iommu_unuse_page() helper does put_page() now but it might skip that after the memory registering patch applied

Re: [PATCH kernel v10 11/34] vfio: powerpc/spapr: Moving pinning/unpinning to helpers

2015-05-12 Thread Gavin Shan
On Tue, May 12, 2015 at 01:39:00AM +1000, Alexey Kardashevskiy wrote: >This is a pretty mechanical patch to make next patches simpler. > >New tce_iommu_unuse_page() helper does put_page() now but it might skip >that after the memory registering patch applied. > >As we are here, this removes unneces

[PATCH kernel v10 11/34] vfio: powerpc/spapr: Moving pinning/unpinning to helpers

2015-05-11 Thread Alexey Kardashevskiy
This is a pretty mechanical patch to make next patches simpler. New tce_iommu_unuse_page() helper does put_page() now but it might skip that after the memory registering patch applied. As we are here, this removes unnecessary checks for a value returned by pfn_to_page() as it cannot possibly retu