From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH XEN v6 30/32] tools/libs/call: linux: avoid forking between mmap and madvise Date: Wed, 9 Dec 2015 12:22:57 +0000 Message-ID: <20151209122257.GL23818@citrix.com> References: <1449141675.4424.125.camel@citrix.com> <1449141749-14940-1-git-send-email-ian.campbell@citrix.com> <1449141749-14940-31-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1449141749-14940-31-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: wei.liu2@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, Dec 03, 2015 at 11:22:27AM +0000, Ian Campbell wrote: > Use pthread_atfork to prevent the application from forking before the > madvisoe(), which would result in CoW mappings getting passed to madvise > hypercalls. > > (largely cribbed from libxl_fork.c) > > Signed-off-by: Ian Campbell Acked-by: Wei Liu