From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Haigh Subject: Re: vnc=1 / pvgrub / close fb: backend at /local/domain/0/backend/vfb/xx/0 Date: Thu, 06 Nov 2014 20:49:16 +1100 Message-ID: <545B441C.9040907@crc.id.au> References: <544678FE.2000801@crc.id.au> <5446CF1D.6030307@crc.id.au> <1413968436.20604.53.camel@citrix.com> <20141022095906.GG3659@type.bordeaux.inria.fr> <1413974439.18118.1.camel@citrix.com> <1413979542.19198.14.camel@citrix.com> <5447CBE4.6090104@crc.id.au> <1413992405.19198.24.camel@citrix.com> <5447D30A.4040704@crc.id.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4001079984976973001==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Anthony Perard , Samuel Thibault , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============4001079984976973001== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EO4TKGBs2sQftavFrJd695TNfgQ37mbMc" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EO4TKGBs2sQftavFrJd695TNfgQ37mbMc Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Stefano, It seems that this patch fixes the grub issue for me. I no longer get the infinite wait at the grub prompt. On 6/11/2014 4:49 AM, Stefano Stabellini wrote: > Hello Steven, > I have found some time to debug this myself. > I couldn't reproduce the booting issue that you reported: in my case > after seeing the grub boot menu I can successfully boot the kernel > without problems. >=20 > However I can reproduce the timeout issue that you are seeing: the > timeout doesn't work properly in graphics mode. >=20 > The reason is that the with a graphics terminal you checkkey () return = 0 > even when pressing no keys, resulting in wrong behaviour in run_menu.=20 >=20 > Does the following patch (also attached) fixes your issues? >=20 >=20 > diff --git a/stubdom/grub.patches/11graphics-keyboard.diff b/stubdom/gr= ub.patches/11graphics-keyboard.diff > new file mode 100644 > index 0000000..fe17b20 > --- /dev/null > +++ b/stubdom/grub.patches/11graphics-keyboard.diff > @@ -0,0 +1,13 @@ > +diff --git a/stage2/stage2.c b/stage2/stage2.c > +index 9d9fcc3..8353a3b 100644 > +--- a/stage2/stage2.c > ++++ b/stage2/stage2.c > +@@ -395,7 +395,7 @@ restart: > + pressed. =20 > + This avoids polling (relevant in the grub-shell and later on > + in grub if interrupt driven I/O is done). */ > +- if (checkkey () >=3D 0 || grub_timeout < 0) > ++ if (checkkey () > 0 || grub_timeout < 0) > + { > + /* Key was pressed, show which entry is selected before GETKEY, > + since we're comming in here also on GRUB_TIMEOUT =3D=3D -1 and >=20 >=20 >=20 > On Thu, 23 Oct 2014, Steven Haigh wrote: >> On 23/10/2014 2:40 AM, Ian Campbell wrote: >>> On Thu, 2014-10-23 at 02:23 +1100, Steven Haigh wrote: >>> >>>> Output using pv-grub: >>> >>> Can you also post the qemu logs please (under /var/log/xen somewhere = I >>> think). >> >> I get very little out of this: >> -rw-r--r-- 1 root root 0 Oct 23 02:45 qemu-dm-dev.vm.log >> -rw-r--r-- 1 root root 0 Oct 23 02:44 xen-hotplug.log >> -rw-r--r-- 1 root root 55 Oct 23 02:45 xl-dev.vm.log >> [root@dom0 xen]# cat xl-dev.vm.log >> Waiting for domain dev.vm (domid 36) to die [pid 6970] >> >> That's it :\ >> >>>> qemu-system-i38[3956]: segfault at 0 ip (null) sp >>>> 00007fffb4573638 error 4 >>> >>> That might be a smoking gun. Is there a core dump and/or could you tr= y >>> and run qemu under gdb? >> >> Any hints on doing this? I can't say I'm a gdb guru.... I can't find a= ny >> core dumps anywhere so that's not really helpful... >> >> --=20 >> Steven Haigh >> >> Email: netwiz@crc.id.au >> Web: http://www.crc.id.au >> Phone: (03) 9001 6090 - 0412 935 897 >> --=20 Steven Haigh Email: netwiz@crc.id.au Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 --EO4TKGBs2sQftavFrJd695TNfgQ37mbMc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJUW0QdAAoJEEGvNdV6fTHcjWsQAJ8vrp2B1GXN1R5ukMaQ2c2y 08xMInRO8Pg8MoDP3TiN6DWmMtho4pdtQzxtmfqIejwqhajsZnGNX5aqDKe2HDUf dqwYLirAU3MGAEAqNUqPjRcq9DKEL/FEcNmbO6zKhqZurGEg/Aur/jyAux5CVcCf A9gNEUt7ZKqmz4iC84MFpfUXL8D2SFd8oaUS+rmNi38HVXBiF1P9x+Drr6j8QPEH S4hpTMdsXG6MXbeP/GFaARn3oKPXB1GB/xiUPL9N6SEziA+JclVT0K/k7sxGK7/t uAFLoTfP8XZWvI0PTIK6zskD9vAKsX/khJRS6jtUVj+uLwpYrC0Po3wJ4+0hy/4I h9dzo6/4MqqIuPGy1Txpqg+uHZNxn+LUkWP3QZ8fs7zlOHXji3jOS7tQ/PozSScA bK33rVM4VKCOS7jvkDY5LEFZv8PIBYvd/90cKzz0JzOcZ/3hPWKPDQVlbubBPNFt 8PLCflqaZY6KSAjkY3holZRIXPC4IT7XJHGkd6Gio7AJiGVtrKEc+3uZ8UKNv2z5 vR4bgAWKNSNcR5Ig2RmlDTlZMidNFx3LJ9RMbyKeQXEAP2qoNv1SFwxrzuTOBeb7 Gy0hU7rRY4n63irpRdGbAyhHMkUWVxqjPSp6OjE5EUDmjMdfqT4kv0OIPB7qnTfS EXexc7Jn7Ar9AgP3ttfT =7z9+ -----END PGP SIGNATURE----- --EO4TKGBs2sQftavFrJd695TNfgQ37mbMc-- --===============4001079984976973001== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============4001079984976973001==--