From: Keir Fraser Subject: Re: Need help with fixing the Xen waitqueue feature Date: Thu, 24 Nov 2011 09:51:27 +0000 Message-ID: References: <4ECE19400200007800062E4A@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4ECE19400200007800062E4A@nat28.tlf.novell.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: Jan Beulich Cc: Olaf Hering , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 24/11/2011 09:15, "Jan Beulich" wrote: >> >> Attached three patches for you to try. They apply in sequence. >> 00: A fixed version of "domain_crash on stack overflow" >> 01: Reorders prepare_to_wait so that the vcpu will always be on the >> waitqueue on exit (even if it has just been woken). >> 02: Ensures the vcpu wakes up on the same cpu that it slept on. > > Didn't we (long ago) settle on not permitting new calls to > domain_crash_synchronous()? Is it really impossible to just > domain_crash() in any of the instances these add? It's safe because you must be in a context that is safe to preempt. That's a pre-condition for using a waitqueue. It's not safe to use domain_crash() because the caller of wait_event() may not handle the exceptional return. -- Keir