From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60199 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBosF-0008Nq-Bl for qemu-devel@nongnu.org; Tue, 11 May 2010 08:47:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBosD-00065R-GW for qemu-devel@nongnu.org; Tue, 11 May 2010 08:47:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35865) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBosD-00065J-9I for qemu-devel@nongnu.org; Tue, 11 May 2010 08:47:45 -0400 Date: Tue, 11 May 2010 15:47:40 +0300 From: Gleb Natapov Message-ID: <20100511124740.GN2504@redhat.com> References: <20100510081118.GI24787@redhat.com> <4BE82ADA.6000302@codemonkey.ws> <4BE912FB.9030702@redhat.com> <20100511124529.GA14189@morn.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100511124529.GA14189@morn.localdomain> Subject: [Qemu-devel] Re: [SeaBIOS] [PATCHv2] Support for booting from virtio disks List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: Stefan Hajnoczi , seabios@seabios.org, Avi Kivity , kvm@vger.kernel.org, qemu-devel@nongnu.org On Tue, May 11, 2010 at 08:45:29AM -0400, Kevin O'Connor wrote: > On Tue, May 11, 2010 at 10:04:25AM +0100, Stefan Hajnoczi wrote: > > From what I can tell SeaBIOS is reading CMOS_BIOS_BOOTFLAG1 and > > CMOS_BIOS_BOOTFLAG2 from non-volatile memory. The values index into > > bev[], which contains IPL entries (the drives). > > > > Is the order of bev[] entries well-defined? Is there a way for QEMU > > command-line to know that the first virtio-blk device corresponds to x > > and the IDE CD-ROM corresponds to y? > > SeaBIOS arranges for bev[0] = floppy, bev[1] = hd, bev[2] = cdrom, and > bev[3] to be the first network card - it does this so that the boot > order can be read from qemu. However, it's a pain to force this > order. > What if there are more then one disk? -- Gleb.