From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJkOK-0008Tt-2A for qemu-devel@nongnu.org; Thu, 04 Oct 2012 08:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJkOF-00011r-0Q for qemu-devel@nongnu.org; Thu, 04 Oct 2012 08:18:59 -0400 Received: from e28smtp06.in.ibm.com ([122.248.162.6]:56021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJkOE-00011J-CF for qemu-devel@nongnu.org; Thu, 04 Oct 2012 08:18:54 -0400 Received: from /spool/local by e28smtp06.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 4 Oct 2012 17:48:49 +0530 Message-ID: <506D7EA4.6040300@linux.vnet.ibm.com> Date: Thu, 04 Oct 2012 17:48:44 +0530 From: Avik Sil MIME-Version: 1.0 References: <50641A82.4030708@linux.vnet.ibm.com> <1348738150.24701.21.camel@pasglop> <20120927095136.GI23096@redhat.com> <506D6B20.7020508@linux.vnet.ibm.com> <20121004112217.GA27396@redhat.com> <506D7317.40906@linux.vnet.ibm.com> <49B19A15-2864-4354-BA5E-66CBA139FD84@suse.de> In-Reply-To: <49B19A15-2864-4354-BA5E-66CBA139FD84@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] Qemu boot device precedence over nvram boot-device setting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Benjamin Herrenschmidt , "qemu-ppc@nongnu.org List" , Nikunj A Dadhania , Gleb Natapov , qemu-devel qemu-devel >>>> I looked at the bootindex stuff and found that when the bootindex is >>>> specified for the disk and cdrom it generates a string like: >>>> >>>> "/spapr-vio-bridge/spapr-vscsi/channel@0/disk@0,1 >>>> /spapr-vio-bridge/spapr-vscsi/channel@0/disk@0,0" >>>> >>>> Now converting/translating this to OF device path is going to be >>>> much trickier and might not be proper. So I propose a simple >>>> solution by introducing a global flag that checks if explicit -boot >>>> parameter is provided or not. The presence of this parameter is >>>> verified in SLOF firmware. The flag had to be introduced as >>>> boot_devices defaults to "cad" instead of null and passed to >>>> machine->init(). >>>> >>> So you want to hack around the problem. If -boot is specified what >>> device are you going to boot from? >> >> It is going to boot from the device specified in -boot as default_boot_order is set to 0 in that case. > > Imagine you have 2 controllers: > > * vio > * virtio > > and you specify -boot c. Which device are you going to boot from? Currently, by default SLOF boots from the first disk it discovers in the device tree. Regards, Avik > > > Alex > >