From: Keir Fraser Subject: Re: [PATCH] xc_save: ignore the first suspend event channel notification Date: Sun, 07 Sep 2008 08:43:24 +0100 Message-ID: References: <20080907071520.GB36704@xanadu.kublai.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080907071520.GB36704@xanadu.kublai.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Brendan Cully Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 7/9/08 08:15, "Brendan Cully" wrote: >>> I don't like the forced initial consumption of a single evtchn signal. I'd >>> like rid of that and change the retry loop to call (*suspend) instead. Add >>> an extra boolean to the static suspend_info structure to detect first >>> invocation of (*suspend) versus repeated invocations. >> >> Actually I can knock these changes together myself, so I'll do that, taking >> whatever bits of your patch are appropriate. > > Ok, sure. I still think it's a bit unfortunate that the suspend > function will return without waiting for the domain to suspend, and > not just because of the extra round trip. At the end of the suspend > function, xend is under the impression that the guest has suspended > and it can perform device migration stage 2. I wonder if it's > dangerous to do this before confirming that the guest has actually > suspended. Ah, I hadn't spotted that bit. I'll think about it - maybe your approach is simplest after all. -- Keir