Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmU86-0005gZ-RK for qemu-devel@nongnu.org; Sat, 12 Sep 2009 11:03:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmU80-0005Vu-7v for qemu-devel@nongnu.org; Sat, 12 Sep 2009 11:03:09 -0400 Received: from [199.232.76.173] (port=47007 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmU80-0005VO-1l for qemu-devel@nongnu.org; Sat, 12 Sep 2009 11:03:04 -0400 Received: from imta-38.everyone.net ([216.200.145.38]:59224 helo=omta0109.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmU7z-0000H6-DK for qemu-devel@nongnu.org; Sat, 12 Sep 2009 11:03:03 -0400 Date: Sat, 12 Sep 2009 11:03:00 -0400 From: Kevin O'Connor Subject: Re: [Qemu-devel] Re: [PATCH 0/2] port over extboot from kvm Message-ID: <20090912150300.GA31077@morn.localdomain> References: <1252401463-3249-1-git-send-email-kraxel@redhat.com> <4AA6607C.4050505@siemens.com> <4AA668A2.1080801@redhat.com> <4AA66B10.2050901@codemonkey.ws> <4AA680BB.5020201@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AA680BB.5020201@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Jan Kiszka , Gerd Hoffmann , qemu-devel@nongnu.org On Tue, Sep 08, 2009 at 07:05:15PM +0300, Avi Kivity wrote: > On 09/08/2009 05:32 PM, Anthony Liguori wrote: >> x86 boot is strange. The BIOS boots from the "first hard disk" What >> extboot allows you do to is redefine to the bios what constitutes the >> "first hard disk". > > It's not just booting - it's the int 0x13 interface. Grub for example > continues to use it and can boot from the second hard disk if desired. Some time back, I tried implementing booting from the second hard drive by passing 0x81 in "dl" during the boot. All the boot loaders I tested failed to work. I think grub may have worked if I re-configured it, but I figured it wasn't worth it due to the confusion it would cause. So, the experience suggested to me that bootloaders today still require the boot harddrive to be mapped to 0x80. (Though, interestingly, cdrom booting is okay with any drive id..) >> For instance, it would not be possible to define a boot sequence of >> "first virtio disk, then second virtio disk, then cdrom" because we >> can't present two disks as the first hard disk. >> >> If extboot supported BCV and our bios did, the above would be possible. FWIW, SeaBIOS does support BCVs. SeaBIOS will find all the drives and present them on the boot menu - the user can then select which drive to boot from (either floppy, any number of cdroms, any of the builtin or external "BCV" hard drives). For floppy and hard drive booting the selection is implemented by manipulating the drive mappings. Also, as an aside, it seams likely that USB booting will be added to SeaBIOS (either directly or as an option rom). I'm not sure if this has any overlap with extboot. -Kevin