qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qem


From: Jamie Lokier
Subject: Re: [Qemu-devel] [PATCH 0/4] net-bridge: rootless bridge support for qemu
Date: Fri, 6 Nov 2009 10:54:07 +0000
User-agent: Mutt/1.5.13 (2006-08-11)

Avi Kivity wrote:
> >I know this has been discussed before, but isn't this why there are 
> >things like vfork()? 
> 
> vfork() doesn't work with threads - it requires that the calling process 
> be halted until exec() is called.

On Linux (NPTL), vfork() is good for this.  It only halts the calling
thread.  Other threads continue to run, and when the vfork'd thread
called exec*(), it doesn't affect the other threads.  Of course this
behaviour isn't portable, but then again, neither is KVM.

(Forget what I said elsewhere about Glibc using clone() to spawn
processes.  It's just Glibc's very complicated way of implementing
fork(), and doesn't share the parent's memory).

-- Jamie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]