From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PGZKB-0007iv-2k for mharc-grub-devel@gnu.org; Thu, 11 Nov 2010 10:44:31 -0500 Received: from [140.186.70.92] (port=38915 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGZK7-0007hA-U1 for grub-devel@gnu.org; Thu, 11 Nov 2010 10:44:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGZK6-0003cT-IV for grub-devel@gnu.org; Thu, 11 Nov 2010 10:44:27 -0500 Received: from mail-gw0-f41.google.com ([74.125.83.41]:33383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGZK6-0003cG-Ei for grub-devel@gnu.org; Thu, 11 Nov 2010 10:44:26 -0500 Received: by gwj16 with SMTP id 16so964351gwj.0 for ; Thu, 11 Nov 2010 07:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=6u95ppjo8ac+sJZQZgkqmE0RUix1nmu9rqVmWADpmbk=; b=QmbgUi4li9rfEXeHk5zS1ZGHoom80OEQZzPzN81DOS23ABDm/g1iPTTO+xHOEOxMc+ DoqCIv18z8ov2j2PuugRFGB5ik5gpQUVMNW1KKRqdGUTfVgKACFHiLYgGcbV2GaW0cxF zvMyXRnJOqqj4qkzLC0Xn8Id6KhzGKC9FcFSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=vzohxbD+hMkyRz1bLqmnPJtPt96HT/jpC3gJaZ7Bg1HvzbzWomZguwOOZqPUsZNHAx p9Gj19OhfG81GJWOYy/2nyk0Wk/TCO3RjzuyI2NJye7E5FzV/D3pdKsSmS965i+mEvuC nNyCz8Vb5fcYh2siXg5Eb1f4OgVoYPjywlMus= Received: by 10.204.97.141 with SMTP id l13mr1475332bkn.184.1289490264755; Thu, 11 Nov 2010 07:44:24 -0800 (PST) Received: from debian.bg45.phnet (235-40.203-62.cust.bluewin.ch [62.203.40.235]) by mx.google.com with ESMTPS id p34sm1002722bkf.3.2010.11.11.07.44.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Nov 2010 07:44:23 -0800 (PST) Message-ID: <4CDC0F46.7010109@gmail.com> Date: Thu, 11 Nov 2010 16:44:06 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 MIME-Version: 1.0 To: grub-devel@gnu.org References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig8F2C213074B9BF8416E678D4" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: efi Grub2 of Ubuntu 10.10 x64 fails to execute on qemu with -enable-kvm X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2010 15:44:29 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8F2C213074B9BF8416E678D4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11/11/2010 04:33 AM, Adhyas Avasthi wrote: > I am trying to run Ubuntu 10.10 x64 on qemu with OVMF EFI BIOS. > Everything is fresh off the tree. While I can boot into the Bootloader > and the bootloader can boot into OS if I have disabled kvm using > -no-kvm option when I start the VM. > The qemu system crashes with the following error if I enable kvm in > the VM. KVM like any kind of acceleration is imprecise. Because of it results of testing under kvm not always reflect the real state of things. For testing bootloader capabilities speed doesn't matter. When testing userspace firmware shouldn't matter and if you boot using coreboot-on-qemu+grub or grub-as-qemu-firmware you can check for firmware independance (you need to boot in graphics mode). EFI is only a pain. While it's important to check that GRUB works with it on real machines and faithful emulators, there is really no point in using it when you don't need to. It's better to just use SeaBIOS with qemu if you need to use Ubuntu in VM= =2E This being said I was able to load Linux amd64 on kvm 0.12.5 using 64-bit tianocore and 1.99~beta0 GRUB on Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz. While if someone figures it out and offers a sane workaround (not a "fix", it's not our bug, but inherent disadvantage of kvm) it can be accepted, there is no point in spending time on it > > !!!! X64 Exception Type - 000000000000000D !!!! > ExceptionData - 0000000000000000 > RIP - 000000001FFA937A, RFL - 0000000000010206 > RAX - 000000001FF351C0, RCX - 0000000000000000, RDX - 000000001FFBB1B0 > RBX - 000000001FF35400, RSP - 000000001FF97540, RBP - 000000001FFBB1B0 > RSI - 000000001FFBB1F0, RDI - 000000001FF35200 > R8 - 0000000000000000, R9 - 000000001FFBB1EF, R10 - 000000001E5E1728 > R11 - 000000001FF973D8, R12 - 000000001FFB6810, R13 - 0000000000000070 > R14 - 000000001DDBAFFF, R15 - 0000000000000060 > CS - 0028, DS - 0008, ES - 0008, FS - 0008, GS - 0008, SS - 0008 > GDT - 000000001FF1CE98; 003F, IDT - > 000000001FE88BC0; 0FFF > LDT - 0000000000000000, TR - 0000000000000000 > CR0 - 0000000080000023, CR2 - 0000000000000000, CR3 - 000000001FF36000 > CR4 - 0000000000000668, CR8 - 0000000000000000 > DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 > DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400 > > This is a pain, because without the kvm the installation and booting > is really really slow. I tried to debug it from the EFI BIOS a little > bit and it seems that the boot loader crashed with this exception > immediately after it was started. > Other developers on OVMF and EDK2 development (EFI BIOS) have also > pointed out that in order to use Ubuntu 10.10 with EFI, you have to > disable kvm. This seems to be an issue. > > If there are any pointers (or any other debug help you want from me) > in order to help root cause the issue, that would be helpful. Also, I > can drop into the EFI Shell and start the bootloader efi image > manually, which results in the same crash. Can I pass some parameters > to the boot loader image to get some more information about the crash > or the boot loader progress before the crash? > > I have downloaded the Grub2 sources and am trying to look into this > issue. If someone has been able to reproduce the issue, do let me know.= > > --=20 > Adhyas > ******************************************************************** > Two types have compatible type if their types are the same. > =E2=80=94 ANSI C Standard, 3.1.2.6. > ******************************************************************** > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig8F2C213074B9BF8416E678D4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkzcD08ACgkQNak7dOguQgk8JQD9FpOmJgmuXCfJDlFvRPRfNqPW v10L6Sej/MvuVKD4jOMA/3b7kOTog61vEkfoJ3zm+lvPA2Rkigau1Nfw2fYrwoEu =RHL5 -----END PGP SIGNATURE----- --------------enig8F2C213074B9BF8416E678D4--