From: Keir Fraser Subject: Re: Re: [PATCH] Require that xenstored writes to a domain complete in a single chunk Date: Mon, 26 Feb 2007 23:12:47 +0000 Message-ID: References: <20070226190913.GC1983@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070226190913.GC1983@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon , Keir Fraser Cc: David Edmondson , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 26/2/07 19:09, "John Levon" wrote: >> The Linux suspend thread does not sync with the xenbus reader thread at all. >> I'm not sure why we've never seen any problems on Linux, but I guess it's >> rare that a message cannot be sent all in one go. Especially a watch event, >> as those are usually fairly short. > > Presumably we have to make sure we've waited for all threads waiting for > a response to have woken up from the sleep-until-reply too, though; I'm > not sure we do that. Request-response pairs are serialised on a mutex. This mutex is locked out across save/restore, which means that save/restore cannot proceed until any outstanding response has been fully received. There's nothing even halfway tricky going on here. :-) -- Keir