From: Alberto =?iso-8859-1?q?Trevi=F1o?= Subject: Problems with GRUB and boot=on flag Date: Thu, 22 May 2008 17:42:38 -0600 Message-ID: <200805221742.38609.alberto@byu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from oriskany.byu.edu ([128.187.16.29]:51643 "EHLO nm.byu.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759061AbYEWAob convert rfc822-to-8bit (ORCPT ); Thu, 22 May 2008 20:44:31 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: I am having a really weird problem. I reported about it earlier (see=20 http://article.gmane.org/gmane.comp.emulators.kvm.devel/15884) thinking= =20 the problem was with SCSI disks, but that's not the case. Let me try=20 to explain. I have a drive that has GRUB and Linux. If I run the following command= ,=20 it boots normally, even though the boot flag has been set to off: qemu-system-x86_64 -m 256 -drive file=3Dhd0.qcow2,if=3Dide,bus=3D0,index=3D0,media=3Ddisk,boot= =3Doff If I run the following, qemu crashes when GRUB loads: qemu-system-x86_64 -m 256 -drive file=3Dhd0.qcow2,if=3Dide,bus=3D0,index=3D0,media=3Ddisk,boot= =3Don Qemu reports the following when it crashes: exception 13 (33) rax 0000000000000000 rbx 0000000000000800 rcx 0000000000000000 rdx=20 00000000000000e0 rsi 00000000ffff7d98 rdi 000000000008f788 rsp 0000000000002018 rbp=20 0000000000000001 r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11=20 0000000000000000 r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15=20 0000000000000000 rip 0000000000000003 rflags 00033202 cs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ds 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) es 0800 (00008000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) tr 0000 (fffbd000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0) ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0) gdt fb1f2/30 idt 0/3ff cr0 10 cr2 0 cr3 0 cr4 0 cr8 0 efer 0 code: 53 ff 00 --> f0 53 ff 00 f0 53 ff 00 f0 53 ff 00 f0 53 ff 00 f0 5= 3=20 ff 00 f0 53 ff 00 f0 53 ff 00 f0 a5 fe 00 f0 87 e9 00 f0 53 ff 00 f0 53= =20 ff 00 f0 53 ff Aborted If I change the interface to SCSI and set the boot flag to off, Qemu=20 can't find a valid boot drive and does not boot. If I change the=20 interface to SCSI and set the boot flag to on, I get the same crash. According to Anthony Liguori's original extboot post, "boot=3Don" turns= on=20 the extboot code, so my problem is the combination of extboot and GRUB.= =20 A response on my original post suggested this might be a real mode=20 issue. However, it seems more of an extboot problem with some of the=20 calls from GRUB. What's the status of the extboot in C project? Perhaps I could try tha= t=20 to see if it fixes the problem. Does anyone have any other=20 suggestions? --=20 Alberto Trevi=F1o alberto@byu.edu Testing Center Brigham Young University