Re: [PATCH kernel v7 6/7] vfio/spapr: Reference mm in tce_container

2016-12-01 Thread David Gibson
On Wed, Nov 30, 2016 at 05:52:04PM +1100, Alexey Kardashevskiy wrote: > In some situations the userspace memory context may live longer than > the userspace process itself so if we need to do proper memory context > cleanup, we better have tce_container take a reference to mm_struct and > use it

Re: [PATCH kernel v7 6/7] vfio/spapr: Reference mm in tce_container

2016-12-01 Thread Alex Williamson
On Wed, 30 Nov 2016 17:52:04 +1100 Alexey Kardashevskiy wrote: > In some situations the userspace memory context may live longer than > the userspace process itself so if we need to do proper memory context > cleanup, we better have tce_container take a reference to mm_struct and