From: Markus Armbruster Subject: Re: [PATCH 1/2] Virtual frame buffer: frontend Date: Fri, 04 Aug 2006 09:54:51 +0200 Message-ID: <877j1pj5pw.fsf@pike.pond.sub.org> References: <87ac80ghox.fsf@pike.pond.sub.org> <8764ioghnn.fsf@pike.pond.sub.org> <44CA16BA.5050702@bull.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <44CA16BA.5050702@bull.net> (Laurent Vivier's message of "Fri, 28 Jul 2006 15:52:58 +0200") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Laurent Vivier Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Laurent Vivier writes: > Hi, > > my domain hangs when I load xenfb module. > > The sequence is: > dom0# sdlfb > ... > domU# modprobe fbcon > domU# modprobe xenkbd > domU# modprobe xenfb > ... HANGS HERE .... > > I found that it hangs in xenfb_event_handler() because info->page->in_prod and > info->page->in_cons are not initialized correctly. You're right. I missed that error, then had the bad luck that it happened to work for me every time. > I propose following correction: > > Index: xen-3.0-testing.hg/linux-2.6.16.13-xen/drivers/xen/xenfb/xenfb.c > =================================================================== > --- xen-3.0-testing.hg.orig/linux-2.6.16.13-xen/drivers/xen/xenfb/xenfb.c > 2006-07-28 12:58:47.000000000 +0200 > +++ xen-3.0-testing.hg/linux-2.6.16.13-xen/drivers/xen/xenfb/xenfb.c > 2006-07-28 15:28:23.000000000 +0200 > @@ -414,6 +414,8 @@ > info->page->depth = 32; > info->page->line_length = (info->page->depth / 8) * info->page->width; > info->page->mem_length = xenfb_mem_len; > + info->page->in_cons = info->page->in_prod = 0; > + info->page->out_cons = info->page->out_prod = 0; Works for me. > ret = bind_evtchn_to_irqhandler(info->evtchn, xenfb_event_handler, > 0, "xenfb", info); > > > Regards, > Laurent Sorry for the slow reply, I was sick. Thanks!