From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1X22mq-0000OR-V5 for mharc-grub-devel@gnu.org; Tue, 01 Jul 2014 14:28:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X22mk-0000NG-3m for grub-devel@gnu.org; Tue, 01 Jul 2014 14:28:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X22md-0002Ls-VD for grub-devel@gnu.org; Tue, 01 Jul 2014 14:28:06 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.231]:4786 helo=cdptpa-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X22md-0002Ks-RP for grub-devel@gnu.org; Tue, 01 Jul 2014 14:27:59 -0400 Received: from [67.78.168.186] ([67.78.168.186:58026] helo=[10.1.1.200]) by cdptpa-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id D6/4F-17372-EADF2B35; Tue, 01 Jul 2014 18:27:59 +0000 Message-ID: <53B2FDAE.7030506@ubuntu.com> Date: Tue, 01 Jul 2014 14:27:58 -0400 From: Phillip Susi User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Andrey Borzenkov Subject: Re: Loading a 32 bit kernel from 64 bit grub-xen References: <53B2DC70.1040109@ubuntu.com> <20140701201814.6234200d@opensuse.site> In-Reply-To: <20140701201814.6234200d@opensuse.site> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: BaiduSpider X-Received-From: 107.14.166.231 Cc: The development of GNU GRUB , xen-devel@lists.xen.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Tue, 01 Jul 2014 18:28:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 7/1/2014 12:18 PM, Andrey Borzenkov wrote: > =F7 Tue, 01 Jul 2014 12:06:08 -0400 Phillip Susi > =D0=C9=DB=C5=D4: > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > >> I have been trying to fix grub to load a 32 bit kernel from the >> 64 bit xen build. After fixing up one or two minor issues with >> the elf loader, I believe I now have it to the point where it >> jumps correctly to the 32 bit kernel and it crashes there, since >> it is 32 bit code still executing on a cpu in 64 bit mode. The >> question is how to return the cpu to 32 bit mode *under xen*=3F > > > IIRC it was already discussed not long ago and it seems to be Xen > limitation. You probably need to ask on xen-devel to be sure. > > Is it not more simple to use 32 bit grub with 32 bit kernel to > start with=3F The problem with that is that you have to know in advance which kernel you are going to boot. That makes configuring virtual hosts harder; they just want one grub image they can use to chainload whatever the guest wants to install in their domain. Also there must be a way to do this otherwise a 64 bit kernel running under xen wouldn't be able to execute a 32 bit binary. I suppose I'll Cc xen-devel. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTsv2uAAoJEI5FoCIzSKrwvQQIAIZ/ipl4MRQcf2nhOBUFzEzM WTNx4ul/ZAtEDATMpokIpnhZuU1VDqzeOHbHZDXQfXZbYyhHM5LTKqiCLEGW0qnE Q+qW5Q9cKeXolx/hjZ4FrUU1fMHZ9tZ7dhb68iB1aGELZVtR7yXJFsl+4ZF6LPvN 5/w3g6WAd4fWpfEswL34EzaUW0RAfa0O4xmgHbQkkXftO1TLOoiswwGcW3xc9nai jr03H9NyOUTgZX89xhR/LAKuCMivs/FWARQ1UDMwy9KfY0IIoka94BfL36T4te01 HrYmiXtKoiaOZ0IyEhm5HY+X7bHBZU/eycQ3KdRG8aW694Y0zrCEEKhw0pJpbw0=3D =3DVadi -----END PGP SIGNATURE-----