From: Keir Fraser Subject: Re: Need help with fixing the Xen waitqueue feature Date: Tue, 22 Nov 2011 15:54:44 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 22/11/2011 15:40, "Keir Fraser" wrote: > I have a new theory, which is that if we go round the for-loop in > wait_event() more than once, the vcpu's pause counter gets messed up and > goes negative, condemning it to sleep forever. Further to this, can you please try moving the call to __prepare_to_wait() from just after the spinlock region to just before (i.e., immediately after the ASSERT), in prepare_to_wait(). That could well makes things work better. On UP at least -- for SMP systems I will also need to fix the broken usage of wqv->esp... -- Keir