From: Keir Fraser Subject: Re: [PATCH] Remove uneeded 'else if' when closing event channels. Date: Sat, 3 Dec 2005 09:12:27 +0000 Message-ID: <02e7fb23007beda611d99c3cedded97d@cl.cam.ac.uk> References: <20051202050519.GB25348@bakeyournoodle.com> <6db9374a4edb3d812498d5c59d169e17@cl.cam.ac.uk> <1133566260.21941.5.camel@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1133566260.21941.5.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rusty Russell Cc: Xen-Devel , Tony Breeds List-Id: xen-devel@lists.xenproject.org On 2 Dec 2005, at 23:31, Rusty Russell wrote: >> It can change, between lines 340 and 341 (where we have no locks >> held). > > Hmm, you mean same domain makes another hypercall in parallel to close > the event channel then rebind it to a different domain? Yes. That would be very stupid of the guest, but Xen needs to protect itself. > In which case, close fails with EINVAL? I'm open to suggestions for a better error code. -- Keir