Re: [PATCH v17 1/2] mem_sharing: fix sharability check during fork reset

2020-04-27 Thread Roger Pau Monné
On Sat, Apr 25, 2020 at 06:31:46AM -0600, Tamas K Lengyel wrote: > On Sat, Apr 25, 2020 at 3:01 AM Roger Pau Monné wrote: > > > > On Fri, Apr 24, 2020 at 06:18:24AM -0600, Tamas K Lengyel wrote: > > > On Fri, Apr 24, 2020 at 3:44 AM Roger Pau Monné > > > wrote: > > > > > > > > On Thu, Apr 23, 20

Re: [PATCH v17 1/2] mem_sharing: fix sharability check during fork reset

2020-04-25 Thread Tamas K Lengyel
On Sat, Apr 25, 2020 at 3:01 AM Roger Pau Monné wrote: > > On Fri, Apr 24, 2020 at 06:18:24AM -0600, Tamas K Lengyel wrote: > > On Fri, Apr 24, 2020 at 3:44 AM Roger Pau Monné > > wrote: > > > > > > On Thu, Apr 23, 2020 at 08:30:06AM -0700, Tamas K Lengyel wrote: > > > > When resetting a VM fork

Re: [PATCH v17 1/2] mem_sharing: fix sharability check during fork reset

2020-04-25 Thread Roger Pau Monné
On Fri, Apr 24, 2020 at 06:18:24AM -0600, Tamas K Lengyel wrote: > On Fri, Apr 24, 2020 at 3:44 AM Roger Pau Monné wrote: > > > > On Thu, Apr 23, 2020 at 08:30:06AM -0700, Tamas K Lengyel wrote: > > > When resetting a VM fork we ought to only remove pages that were > > > allocated for > > > the f

Re: [PATCH v17 1/2] mem_sharing: fix sharability check during fork reset

2020-04-24 Thread Roger Pau Monné
On Fri, Apr 24, 2020 at 06:18:24AM -0600, Tamas K Lengyel wrote: > On Fri, Apr 24, 2020 at 3:44 AM Roger Pau Monné wrote: > > > > On Thu, Apr 23, 2020 at 08:30:06AM -0700, Tamas K Lengyel wrote: > > > When resetting a VM fork we ought to only remove pages that were > > > allocated for > > > the f

Re: [PATCH v17 1/2] mem_sharing: fix sharability check during fork reset

2020-04-24 Thread Tamas K Lengyel
On Fri, Apr 24, 2020 at 3:44 AM Roger Pau Monné wrote: > > On Thu, Apr 23, 2020 at 08:30:06AM -0700, Tamas K Lengyel wrote: > > When resetting a VM fork we ought to only remove pages that were allocated > > for > > the fork during it's execution and the contents copied over from the parent. > > T

Re: [PATCH v17 1/2] mem_sharing: fix sharability check during fork reset

2020-04-24 Thread Roger Pau Monné
On Thu, Apr 23, 2020 at 08:30:06AM -0700, Tamas K Lengyel wrote: > When resetting a VM fork we ought to only remove pages that were allocated for > the fork during it's execution and the contents copied over from the parent. > This can be determined if the page is sharable as special pages used by

[PATCH v17 1/2] mem_sharing: fix sharability check during fork reset

2020-04-23 Thread Tamas K Lengyel
When resetting a VM fork we ought to only remove pages that were allocated for the fork during it's execution and the contents copied over from the parent. This can be determined if the page is sharable as special pages used by the fork for other purposes will not pass this test. Unfortunately duri