From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JoK1C-0006bF-V9 for qemu-devel@nongnu.org; Tue, 22 Apr 2008 11:02:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JoK1C-0006ax-BK for qemu-devel@nongnu.org; Tue, 22 Apr 2008 11:02:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoK1C-0006au-9I for qemu-devel@nongnu.org; Tue, 22 Apr 2008 11:02:50 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JoK1B-0008TN-EM for qemu-devel@nongnu.org; Tue, 22 Apr 2008 11:02:50 -0400 Subject: Re: [Qemu-devel] Re: [RFC] linuxboot Option ROM for Linux kernel booting From: Laurent Vivier In-Reply-To: <480DED1D.8080701@us.ibm.com> References: <9cde8bff0804202032k6bd44ac6td913c05410e6284@mail.gmail.com> <480DED1D.8080701@us.ibm.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 22 Apr 2008 17:02:36 +0200 Message-Id: <1208876557.4270.3.camel@frecb07144> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvm-devel@lists.sourceforge.net, Paul Brook , "H. Peter Anvin" Le mardi 22 avril 2008 =C3=A0 08:50 -0500, Anthony Liguori a =C3=A9crit : > Nguyen Anh Quynh wrote: > > Hi, > > > > This should be submitted to upstream (but not to kvm-devel list), but > > this is only the test code that I want to quickly send out for > > comments. In case it looks OK, I will send it to upstream later. > > > > Inspired by extboot and conversations with Anthony and HPA, this > > linuxboot option ROM is a simple option ROM that intercepts int19 in > > order to execute linux setup code. This approach eliminates the need > > to manipulate the boot sector for this purpose. > > > > To test it, just load linux kernel with your KVM/QEMU image using > > -kernel option in normal way. > > > > I succesfully compiled and tested it with kvm-66 on Ubuntu 7.10, gues= t > > Ubuntu 8.04. > > =20 >=20 > For the next rounds, could you actually rebase against upstream QEMU an= d=20 > submit to qemu-devel? One of Paul Brook's objections to extboot had=20 > historically been that it wasn't not easily sharable with other=20 > architectures. With a C version, it seems more reasonable now to do th= at. Moreover add a binary version of the ROM in the pc-bios directory: it avoids to have a cross-compiler to build ROM on non-x86 architecture. Regards, Laurent > Make sure you remove all the old linux boot code too within QEMU along=20 > with the -hda checks. >=20 > Regards, >=20 > Anthony Liguori >=20 > > Thanks, > > Quynh > > > > > > # diffstat linuxboot1.diff > > Makefile | 13 ++++- > > linuxboot/Makefile | 40 +++++++++++++++ > > linuxboot/boot.S | 54 +++++++++++++++++++++ > > linuxboot/farvar.h | 130 ++++++++++++++++++++++++++++++++++++++++= +++++++++++ > > linuxboot/rom.c | 104 ++++++++++++++++++++++++++++++++++++++++ > > linuxboot/signrom |binary > > linuxboot/signrom.c | 128 ++++++++++++++++++++++++++++++++++++++++= ++++++++++ > > linuxboot/util.h | 69 +++++++++++++++++++++++++++ > > qemu/Makefile | 3 - > > qemu/Makefile.target | 2 > > qemu/hw/linuxboot.c | 39 +++++++++++++++ > > qemu/hw/pc.c | 22 +++++++- > > qemu/hw/pc.h | 5 + > > 13 files changed, 600 insertions(+), 9 deletions(-) > > =20 >=20 >=20 >=20 >=20 --=20 ------------- Laurent.Vivier@bull.net --------------- "The best way to predict the future is to invent it." - Alan Kay