From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JoItA-000264-GH for qemu-devel@nongnu.org; Tue, 22 Apr 2008 09:50:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JoIt9-00025d-KS for qemu-devel@nongnu.org; Tue, 22 Apr 2008 09:50:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoIt9-00025W-9Q for qemu-devel@nongnu.org; Tue, 22 Apr 2008 09:50:27 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JoIt8-0000Kp-Q8 for qemu-devel@nongnu.org; Tue, 22 Apr 2008 09:50:27 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e33.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id m3MDoP42012661 for ; Tue, 22 Apr 2008 09:50:25 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m3MDoPF0178732 for ; Tue, 22 Apr 2008 07:50:25 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m3MDoMpC018030 for ; Tue, 22 Apr 2008 07:50:25 -0600 Message-ID: <480DED1D.8080701@us.ibm.com> Date: Tue, 22 Apr 2008 08:50:21 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <9cde8bff0804202032k6bd44ac6td913c05410e6284@mail.gmail.com> In-Reply-To: <9cde8bff0804202032k6bd44ac6td913c05410e6284@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RFC] linuxboot Option ROM for Linux kernel booting Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nguyen Anh Quynh Cc: kvm-devel@lists.sourceforge.net, Paul Brook , qemu-devel@nongnu.org, "H. Peter Anvin" 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, guest > Ubuntu 8.04. > For the next rounds, could you actually rebase against upstream QEMU and submit to qemu-devel? One of Paul Brook's objections to extboot had historically been that it wasn't not easily sharable with other architectures. With a C version, it seems more reasonable now to do that. Make sure you remove all the old linux boot code too within QEMU along with the -hda checks. Regards, Anthony Liguori > 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(-) >