Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-26 Thread Tamas K Lengyel
On Tue, Apr 26, 2022, 4:33 AM Julien Grall wrote: > Hi, > > On 26/04/2022 09:17, Roger Pau Monné wrote: > > On Mon, Apr 25, 2022 at 11:24:37AM -0400, Tamas K Lengyel wrote: > >> On Mon, Apr 25, 2022 at 10:12 AM Roger Pau Monné > wrote: > diff --git a/xen/common/vm_event.c b/xen/common/vm_ev

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-26 Thread Julien Grall
Hi, On 26/04/2022 09:17, Roger Pau Monné wrote: On Mon, Apr 25, 2022 at 11:24:37AM -0400, Tamas K Lengyel wrote: On Mon, Apr 25, 2022 at 10:12 AM Roger Pau Monné wrote: diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c index 84cf52636b..d26a6699fc 100644 --- a/xen/common/vm_event.c +

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-26 Thread Roger Pau Monné
On Mon, Apr 25, 2022 at 11:24:37AM -0400, Tamas K Lengyel wrote: > On Mon, Apr 25, 2022 at 10:12 AM Roger Pau Monné wrote: > > > > On Wed, Apr 13, 2022 at 09:41:51AM -0400, Tamas K Lengyel wrote: > > > Allow specify distinct parts of the fork VM to be reset. This is useful > > > when a > > > fuzz

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-25 Thread Tamas K Lengyel
On Mon, Apr 25, 2022 at 10:12 AM Roger Pau Monné wrote: > > On Wed, Apr 13, 2022 at 09:41:51AM -0400, Tamas K Lengyel wrote: > > Allow specify distinct parts of the fork VM to be reset. This is useful > > when a > > fuzzing operation involves mapping in only a handful of pages that are known > >

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-25 Thread Roger Pau Monné
On Wed, Apr 13, 2022 at 09:41:51AM -0400, Tamas K Lengyel wrote: > Allow specify distinct parts of the fork VM to be reset. This is useful when a > fuzzing operation involves mapping in only a handful of pages that are known > ahead of time. Throwing these pages away just to be re-copied immediatel

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-25 Thread Tamas K Lengyel
On Mon, Apr 25, 2022 at 8:53 AM George Dunlap wrote: > > > > On Mon, Apr 25, 2022 at 12:29 PM Tamas K Lengyel wrote: >> >> >> >> On Mon, Apr 25, 2022, 3:49 AM Jan Beulich wrote: >>> >>> On 22.04.2022 16:07, Tamas K Lengyel wrote: >>> > On Wed, Apr 13, 2022 at 9:43 AM Tamas K Lengyel >>> > wrot

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-25 Thread George Dunlap
On Mon, Apr 25, 2022 at 12:29 PM Tamas K Lengyel wrote: > > > On Mon, Apr 25, 2022, 3:49 AM Jan Beulich wrote: > >> On 22.04.2022 16:07, Tamas K Lengyel wrote: >> > On Wed, Apr 13, 2022 at 9:43 AM Tamas K Lengyel < >> tamas.leng...@intel.com> wrote: >> >> >> >> Allow specify distinct parts of th

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-25 Thread Jan Beulich
On 25.04.2022 13:29, Tamas K Lengyel wrote: > On Mon, Apr 25, 2022, 3:49 AM Jan Beulich wrote: > >> On 22.04.2022 16:07, Tamas K Lengyel wrote: >>> On Wed, Apr 13, 2022 at 9:43 AM Tamas K Lengyel >> wrote: Allow specify distinct parts of the fork VM to be reset. This is useful >> when

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-25 Thread Tamas K Lengyel
On Mon, Apr 25, 2022, 3:49 AM Jan Beulich wrote: > On 22.04.2022 16:07, Tamas K Lengyel wrote: > > On Wed, Apr 13, 2022 at 9:43 AM Tamas K Lengyel > wrote: > >> > >> Allow specify distinct parts of the fork VM to be reset. This is useful > when a > >> fuzzing operation involves mapping in only a

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-25 Thread Jan Beulich
On 22.04.2022 16:07, Tamas K Lengyel wrote: > On Wed, Apr 13, 2022 at 9:43 AM Tamas K Lengyel > wrote: >> >> Allow specify distinct parts of the fork VM to be reset. This is useful when >> a >> fuzzing operation involves mapping in only a handful of pages that are known >> ahead of time. Throwin

Re: [PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-22 Thread Tamas K Lengyel
On Wed, Apr 13, 2022 at 9:43 AM Tamas K Lengyel wrote: > > Allow specify distinct parts of the fork VM to be reset. This is useful when a > fuzzing operation involves mapping in only a handful of pages that are known > ahead of time. Throwing these pages away just to be re-copied immediately is >

[PATCH v4 1/2] x86/mem_sharing: make fork_reset more configurable

2022-04-13 Thread Tamas K Lengyel
Allow specify distinct parts of the fork VM to be reset. This is useful when a fuzzing operation involves mapping in only a handful of pages that are known ahead of time. Throwing these pages away just to be re-copied immediately is expensive, thus allowing to specify partial resets can speed thing