From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51309 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBoeY-0000rK-2u for qemu-devel@nongnu.org; Tue, 11 May 2010 08:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBoeW-0003xw-G5 for qemu-devel@nongnu.org; Tue, 11 May 2010 08:33:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26091) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBoeW-0003xj-8x for qemu-devel@nongnu.org; Tue, 11 May 2010 08:33:36 -0400 Date: Tue, 11 May 2010 15:33:25 +0300 From: Gleb Natapov Message-ID: <20100511123325.GL2504@redhat.com> References: <20100510081118.GI24787@redhat.com> <4BE82ADA.6000302@codemonkey.ws> <4BE912FB.9030702@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kvm@vger.kernel.org, seabios@seabios.org, Avi Kivity , qemu-devel@nongnu.org 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? > The order of bev[] is the order in which bootable devices where discovered and can change from one version of Seabios to another. -- Gleb.