From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jnmnb-0004Hn-46 for qemu-devel@nongnu.org; Sun, 20 Apr 2008 23:34:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JnmnZ-0004Gl-Ez for qemu-devel@nongnu.org; Sun, 20 Apr 2008 23:34:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnmnZ-0004Gi-7N for qemu-devel@nongnu.org; Sun, 20 Apr 2008 23:34:33 -0400 Received: from an-out-0708.google.com ([209.85.132.249]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JnmnY-0005Lz-HI for qemu-devel@nongnu.org; Sun, 20 Apr 2008 23:34:32 -0400 Received: by an-out-0708.google.com with SMTP id d26so524046and.130 for ; Sun, 20 Apr 2008 20:33:55 -0700 (PDT) Message-ID: <9cde8bff0804202033p68524e8ag8503b5ba8ab89100@mail.gmail.com> Date: Mon, 21 Apr 2008 12:33:54 +0900 From: "Nguyen Anh Quynh" In-Reply-To: <9cde8bff0804202032k6bd44ac6td913c05410e6284@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9cde8bff0804202032k6bd44ac6td913c05410e6284@mail.gmail.com> 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: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org Cc: Anthony Liguori , "H. Peter Anvin" Forget to say that this patch is against kvm-66. Thanks, Q On Mon, Apr 21, 2008 at 12:32 PM, 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. > > 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(-) >