From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: Need help with fixing the Xen waitqueue feature Date: Wed, 23 Nov 2011 18:00:17 +0100 Message-ID: <20111123170017.GC6000@aepfle.de> References: <20111122211519.GA1039@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline 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: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Nov 22, Keir Fraser wrote: > We obviously can't have dom0 going to sleep on paging work. This, at least, > isn't a wait-queue bug. I had to rearrange some code in p2m_mem_paging_populate for my debug stuff. This led to an uninitialized req, and as a result req.flags sometimes had MEM_EVENT_FLAG_VCPU_PAUSED set. For some reason gcc did not catch that.. Now waitqueues appear to work ok for me. Thanks! What do you think about C99 initializers in p2m_mem_paging_populate, just to avoid such mistakes? mem_event_request_t req = { .type = MEM_EVENT_TYPE_PAGING }; Olaf