Re: [PATCH kernel v4 03/19] powerpc/vfio/iommu/kvm: Do not pin device memory

2018-12-12 Thread Paul Mackerras
On Fri, Nov 23, 2018 at 04:52:48PM +1100, Alexey Kardashevskiy wrote: > This new memory does not have page structs as it is not plugged to > the host so gup() will fail anyway. > > This adds 2 helpers: > - mm_iommu_newdev() to preregister the "memory device" memory so > the rest of API can still b

Re: [PATCH kernel v4 03/19] powerpc/vfio/iommu/kvm: Do not pin device memory

2018-12-04 Thread David Gibson
On Fri, Nov 23, 2018 at 04:52:48PM +1100, Alexey Kardashevskiy wrote: > This new memory does not have page structs as it is not plugged to > the host so gup() will fail anyway. > > This adds 2 helpers: > - mm_iommu_newdev() to preregister the "memory device" memory so > the rest of API can still b

[PATCH kernel v4 03/19] powerpc/vfio/iommu/kvm: Do not pin device memory

2018-11-22 Thread Alexey Kardashevskiy
This new memory does not have page structs as it is not plugged to the host so gup() will fail anyway. This adds 2 helpers: - mm_iommu_newdev() to preregister the "memory device" memory so the rest of API can still be used; - mm_iommu_is_devmem() to know if the physical address is one of thise new