Re: [RFC PATCH resend 3/6] mm: Add refcount for preserving mm_struct without pgd

2020-11-03 Thread John Hubbard
On 11/3/20 5:21 AM, Jason Gunthorpe wrote: On Tue, Nov 03, 2020 at 04:19:11AM +0100, Jann Horn wrote: On Tue, Nov 3, 2020 at 3:11 AM Jann Horn wrote: On Sat, Oct 17, 2020 at 2:30 AM Jann Horn wrote: On Sat, Oct 17, 2020 at 1:21 AM Jason Gunthorpe wrote: On Sat, Oct 17, 2020 at 01:09:12AM

Re: [RFC PATCH resend 3/6] mm: Add refcount for preserving mm_struct without pgd

2020-11-03 Thread Jason Gunthorpe
On Tue, Nov 03, 2020 at 04:19:11AM +0100, Jann Horn wrote: > On Tue, Nov 3, 2020 at 3:11 AM Jann Horn wrote: > > On Sat, Oct 17, 2020 at 2:30 AM Jann Horn wrote: > > > On Sat, Oct 17, 2020 at 1:21 AM Jason Gunthorpe wrote: > > > > On Sat, Oct 17, 2020 at 01:09:12AM +0200, Jann Horn wrote: > > >

Re: [RFC PATCH resend 3/6] mm: Add refcount for preserving mm_struct without pgd

2020-11-02 Thread Jann Horn
On Tue, Nov 3, 2020 at 3:11 AM Jann Horn wrote: > On Sat, Oct 17, 2020 at 2:30 AM Jann Horn wrote: > > On Sat, Oct 17, 2020 at 1:21 AM Jason Gunthorpe wrote: > > > On Sat, Oct 17, 2020 at 01:09:12AM +0200, Jann Horn wrote: > > > > Currently, mm_struct has two refcounts: > > > > > > > > -

Re: [RFC PATCH resend 3/6] mm: Add refcount for preserving mm_struct without pgd

2020-11-02 Thread Jann Horn
On Sat, Oct 17, 2020 at 2:30 AM Jann Horn wrote: > On Sat, Oct 17, 2020 at 1:21 AM Jason Gunthorpe wrote: > > On Sat, Oct 17, 2020 at 01:09:12AM +0200, Jann Horn wrote: > > > Currently, mm_struct has two refcounts: > > > > > > - mm_users: preserves everything - the mm_struct, the page tables,

Re: [RFC PATCH resend 3/6] mm: Add refcount for preserving mm_struct without pgd

2020-10-17 Thread Jann Horn
On Sat, Oct 17, 2020 at 1:21 AM Jason Gunthorpe wrote: > On Sat, Oct 17, 2020 at 01:09:12AM +0200, Jann Horn wrote: > > Currently, mm_struct has two refcounts: > > > > - mm_users: preserves everything - the mm_struct, the page tables, the > >memory mappings, and so on > > - mm_count:

Re: [RFC PATCH resend 3/6] mm: Add refcount for preserving mm_struct without pgd

2020-10-16 Thread Jason Gunthorpe
On Sat, Oct 17, 2020 at 01:09:12AM +0200, Jann Horn wrote: > Currently, mm_struct has two refcounts: > > - mm_users: preserves everything - the mm_struct, the page tables, the >memory mappings, and so on > - mm_count: preserves the mm_struct and pgd > > However, there are three types of

[RFC PATCH resend 3/6] mm: Add refcount for preserving mm_struct without pgd

2020-10-16 Thread Jann Horn
Currently, mm_struct has two refcounts: - mm_users: preserves everything - the mm_struct, the page tables, the memory mappings, and so on - mm_count: preserves the mm_struct and pgd However, there are three types of users of mm_struct: 1. users that want page tables, memory mappings and so