From: Jeremy Fitzhardinge Subject: Re: Crash when booting 32-bit kernel with pvgrub Date: Fri, 04 Sep 2009 15:08:05 -0700 Message-ID: <4AA18FC5.6040009@goop.org> References: <4A85E8E1.6050208@goop.org> <20090817124616.GB5470@const.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090817124616.GB5470@const.bordeaux.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault , Xen-devel List-Id: xen-devel@lists.xenproject.org On 08/17/09 05:46, Samuel Thibault wrote: > Jeremy Fitzhardinge, le Fri 14 Aug 2009 15:44:49 -0700, a =E9crit : > =20 >> I'm trying to boot a 32-bit PV guest on a 64-bit xen+dom0 system, and = it >> crashes as soon as I select a kernel: >> >> >> Booting 'Fedora (2.6.27.19-170.2.35.fc10.i686.PAE)' >> >> root (hd0,0) >> Error ENOENT when reading the backend path device/vkbd/0/backend >> =20 > I guess you do not have pvfb enable? > =20 No. >> Page fault at linear address 0x1c, eip 0x4b6ee, regs 0xb4ff7c, sp 0xb4= fff0, our_sp 0xb4ff50, code 2 >> Thread: kbdfront >> =20 > Oops, dev->backend isn't allocated at this point and dev isn't zeroed, > here is a patch. > =20 Unfortunately this didn't solve the problem for me; it looks unchanged with the patch applied. J > Samuel > > > Zero kbdfront and fbfront dev structures to fix free_kbdfront() and > free_fbfront() on error. > > Signed-Off-By: Samuel Thibault > > diff -r 41b2c4e4f674 extras/mini-os/fbfront.c > --- a/extras/mini-os/fbfront.c Wed Jul 29 09:20:46 2009 +0100 > +++ b/extras/mini-os/fbfront.c Mon Aug 17 14:45:43 2009 +0200 > @@ -80,6 +80,7 @@ > printk("******************* KBDFRONT for %s **********\n\n\n", nod= ename); > =20 > dev =3D malloc(sizeof(*dev)); > + memset(dev, 0, sizeof(*dev)); > dev->nodename =3D strdup(nodename); > #ifdef HAVE_LIBC > dev->fd =3D -1; > @@ -403,6 +404,7 @@ > printk("******************* FBFRONT for %s **********\n\n\n", node= name); > =20 > dev =3D malloc(sizeof(*dev)); > + memset(dev, 0, sizeof(*dev)); > dev->nodename =3D strdup(nodename); > #ifdef HAVE_LIBC > dev->fd =3D -1; > > =20