Re: [PATCH v2 3/3] x86/mem_sharing: make fork_reset more configurable

2022-03-30 Thread Tamas K Lengyel
On Wed, Mar 30, 2022, 9:34 AM Jan Beulich wrote: > On 30.03.2022 15:19, Tamas K Lengyel wrote: > > On Wed, Mar 30, 2022, 6:31 AM Jan Beulich wrote: > >> On 29.03.2022 16:03, Tamas K Lengyel wrote: > >>> --- a/xen/arch/x86/include/asm/mem_sharing.h > >>> +++ b/xen/arch/x86/include/asm/mem_sharing

Re: [PATCH v2 3/3] x86/mem_sharing: make fork_reset more configurable

2022-03-30 Thread Jan Beulich
On 30.03.2022 15:19, Tamas K Lengyel wrote: > On Wed, Mar 30, 2022, 6:31 AM Jan Beulich wrote: >> On 29.03.2022 16:03, Tamas K Lengyel wrote: >>> --- a/xen/arch/x86/include/asm/mem_sharing.h >>> +++ b/xen/arch/x86/include/asm/mem_sharing.h >>> @@ -85,6 +85,9 @@ static inline bool mem_sharing_is_fo

Re: [PATCH v2 3/3] x86/mem_sharing: make fork_reset more configurable

2022-03-30 Thread Tamas K Lengyel
On Wed, Mar 30, 2022, 6:31 AM Jan Beulich wrote: > On 29.03.2022 16:03, Tamas K Lengyel wrote: > > --- a/xen/arch/x86/include/asm/mem_sharing.h > > +++ b/xen/arch/x86/include/asm/mem_sharing.h > > @@ -85,6 +85,9 @@ static inline bool mem_sharing_is_fork(const struct > domain *d) > > int mem_shar

Re: [PATCH v2 3/3] x86/mem_sharing: make fork_reset more configurable

2022-03-30 Thread Jan Beulich
On 29.03.2022 16:03, Tamas K Lengyel wrote: > --- a/xen/arch/x86/include/asm/mem_sharing.h > +++ b/xen/arch/x86/include/asm/mem_sharing.h > @@ -85,6 +85,9 @@ static inline bool mem_sharing_is_fork(const struct domain > *d) > int mem_sharing_fork_page(struct domain *d, gfn_t gfn, >

[PATCH v2 3/3] x86/mem_sharing: make fork_reset more configurable

2022-03-29 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