From: Stefano Stabellini Subject: Re: vnc=1 / pvgrub / close fb: backend at /local/domain/0/backend/vfb/xx/0 Date: Wed, 5 Nov 2014 17:49:53 +0000 Message-ID: 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="1342847746-106688891-1415209793=:22875" Return-path: In-Reply-To: <5447D30A.4040704@crc.id.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Steven Haigh Cc: Anthony Perard , Samuel Thibault , xen-devel@lists.xen.org, Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --1342847746-106688891-1415209793=:22875 Content-Type: text/plain; charset="US-ASCII" 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. However I can reproduce the timeout issue that you are seeing: the timeout doesn't work properly in graphics mode. 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. Does the following patch (also attached) fixes your issues? diff --git a/stubdom/grub.patches/11graphics-keyboard.diff b/stubdom/grub.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. + This avoids polling (relevant in the grub-shell and later on + in grub if interrupt driven I/O is done). */ +- if (checkkey () >= 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 == -1 and 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 try > > and run qemu under gdb? > > Any hints on doing this? I can't say I'm a gdb guru.... I can't find any > core dumps anywhere so that's not really helpful... > > -- > Steven Haigh > > Email: netwiz@crc.id.au > Web: http://www.crc.id.au > Phone: (03) 9001 6090 - 0412 935 897 > > --1342847746-106688891-1415209793=:22875 Content-Type: text/plain; charset="US-ASCII"; name="2" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="2" ZGlmZiAtLWdpdCBhL3N0dWJkb20vZ3J1Yi5wYXRjaGVzLzExZ3JhcGhpY3Mt a2V5Ym9hcmQuZGlmZiBiL3N0dWJkb20vZ3J1Yi5wYXRjaGVzLzExZ3JhcGhp Y3Mta2V5Ym9hcmQuZGlmZg0KbmV3IGZpbGUgbW9kZSAxMDA2NDQNCmluZGV4 IDAwMDAwMDAuLmZlMTdiMjANCi0tLSAvZGV2L251bGwNCisrKyBiL3N0dWJk b20vZ3J1Yi5wYXRjaGVzLzExZ3JhcGhpY3Mta2V5Ym9hcmQuZGlmZg0KQEAg LTAsMCArMSwxMyBAQA0KK2RpZmYgLS1naXQgYS9zdGFnZTIvc3RhZ2UyLmMg Yi9zdGFnZTIvc3RhZ2UyLmMNCitpbmRleCA5ZDlmY2MzLi44MzUzYTNiIDEw MDY0NA0KKy0tLSBhL3N0YWdlMi9zdGFnZTIuYw0KKysrKyBiL3N0YWdlMi9z dGFnZTIuYw0KK0BAIC0zOTUsNyArMzk1LDcgQEAgcmVzdGFydDoNCisgCSBw cmVzc2VkLiAgDQorIAkgVGhpcyBhdm9pZHMgcG9sbGluZyAocmVsZXZhbnQg aW4gdGhlIGdydWItc2hlbGwgYW5kIGxhdGVyIG9uDQorIAkgaW4gZ3J1YiBp ZiBpbnRlcnJ1cHQgZHJpdmVuIEkvTyBpcyBkb25lKS4gICovDQorLSAgICAg IGlmIChjaGVja2tleSAoKSA+PSAwIHx8IGdydWJfdGltZW91dCA8IDApDQor KyAgICAgIGlmIChjaGVja2tleSAoKSA+IDAgfHwgZ3J1Yl90aW1lb3V0IDwg MCkNCisgCXsNCisgCSAgLyogS2V5IHdhcyBwcmVzc2VkLCBzaG93IHdoaWNo IGVudHJ5IGlzIHNlbGVjdGVkIGJlZm9yZSBHRVRLRVksDQorIAkgICAgIHNp bmNlIHdlJ3JlIGNvbW1pbmcgaW4gaGVyZSBhbHNvIG9uIEdSVUJfVElNRU9V VCA9PSAtMSBhbmQNCg== --1342847746-106688891-1415209793=:22875 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 --1342847746-106688891-1415209793=:22875--